1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Fixed abilities of Efreet.

This commit is contained in:
DjWarmonger 2013-05-25 07:21:02 +00:00
parent c9e95f76df
commit 5436950119
2 changed files with 7 additions and 5 deletions

View File

@ -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" :

View File

@ -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);
}