1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Improvement for multiple-hex effects.

TODO: Attacker must know exact attacked tile, not only the stack.
This commit is contained in:
DjWarmonger
2011-07-03 05:55:57 +00:00
parent 4592ddb74e
commit 57a36e77f3
4 changed files with 38 additions and 4 deletions

View File

@@ -792,7 +792,7 @@ void CPlayerInterface::battleStacksAttacked(const std::vector<BattleStackAttacke
const CStack *attacker = cb->battleGetStackByID(i->attackerID, false);
if(i->isEffect() && i->effect != 12) //and not armageddon
{
if (defender != NULL)
if (defender && !i->isSecondary())
battleInt->displayEffect(i->effect, defender->position);
}
SStackAttackedInfo to_put = {defender, i->damageAmount, i->killedAmount, attacker, LOCPLINT->curAction->actionType==7, i->killed()};