瀏覽代碼

Fixed abilities of Efreet.

DjWarmonger 12 年之前
父節點
當前提交
5436950119
共有 2 個文件被更改,包括 7 次插入5 次删除
  1. 6 4
      config/creatures/inferno.json
  2. 1 1
      server/CGameHandler.cpp

+ 6 - 4
config/creatures/inferno.json

@@ -266,7 +266,8 @@
 			},
 			"immuneToFire" :
 			{
-				"type" : "FIRE_IMMUNITY"
+				"type" : "FIRE_IMMUNITY",
+				"subtype" : 0
 			}
 		},
 		"upgrades": ["efreetSultan"],
@@ -308,12 +309,13 @@
 			},
 			"immuneToFire" :
 			{
-				"type" : "FIRE_IMMUNITY"
+				"type" : "FIRE_IMMUNITY",
+				"subtype" : 0
 			},
 			"fireShield" :
 			{
 				"type" : "FIRE_SHIELD",
-				"subtype" : 36 //FIXME: what is this magic number for?
+				"val" : 30
 			}
 		},
 		"graphics" :
@@ -398,7 +400,7 @@
 			"hateArchAngels" : 
 			{
 				"type" : "HATE",
-				"subtype" : "creature.archangel",
+				"subtype" : "creature.angel",
 				"val" : 50
 			},
 			"FLYING_ARMY" :

+ 1 - 1
server/CGameHandler.cpp

@@ -804,7 +804,7 @@ void CGameHandler::applyBattleEffects(BattleAttack &bat, const CStack *att, cons
 		bsa.flags |= BattleStackAttacked::EFFECT;
 		bsa.effect = 11;
 
-		bsa.damageAmount = (bsa.damageAmount * def->valOfBonuses(Bonus::FIRE_SHIELD)) / 100;
+		bsa.damageAmount = (bsa.damageAmount * def->valOfBonuses(Bonus::FIRE_SHIELD)) / 100; //TODO: scale with attack/defense
 		att->prepareAttacked(bsa);
 		bat.bsa.push_back(bsa);
 	}