瀏覽代碼

* No explosion when catapult fails to damage the wall
* Missing abilities for Azure Dragon (tons of others are still missing...)

Michał W. Urbańczyk 13 年之前
父節點
當前提交
d0e2f25cfe
共有 2 個文件被更改,包括 4 次插入1 次删除
  1. 1 1
      client/BattleInterface/CBattleAnimations.cpp
  2. 3 0
      config/creatures.json

+ 1 - 1
client/BattleInterface/CBattleAnimations.cpp

@@ -850,7 +850,7 @@ bool CShootingAnimation::init()
 			// Add explosion anim
 			int xEnd = static_cast<int>(spi.x + spi.lastStep * spi.dx);
 			int yEnd = static_cast<int>(spi.catapultInfo->calculateY(xEnd));
-			owner->addNewAnim( new CSpellEffectAnimation(owner, "SGEXPL.DEF", xEnd - 126, yEnd - 105));
+			owner->addNewAnim( new CSpellEffectAnimation(owner, catapultDamage ? "SGEXPL.DEF" : "CSGRCK.DEF", xEnd - 126, yEnd - 105));
 		}
 	}
 

+ 3 - 0
config/creatures.json

@@ -1359,6 +1359,9 @@
 				"name": [ "AzureDragon" ],
 				"faction": -1,
 				"ability_add": [ [ "DRAGON_NATURE", 0, 0, 0 ],
+							   	 [ "TWO_HEX_ATTACK_BREATH", 0, 0, 0 ],  //azure dragon's breath
+							   	 [ "FEARLESS", 0, 0, 0 ],  //azure dragon is immune to fear
+							   	  [ "LEVEL_SPELL_IMMUNITY", 3, 0, 0 ],	//immunity spell levels 1-3
 								[ "FEAR", 0, 0, 0]],			//azure dragon is a dragon
 				"defname": "CADRGN.DEF"
 			},