mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-17 00:07:41 +02:00
Fix assert and condition for counting spell hexes
This commit is contained in:
@ -937,7 +937,7 @@ void CPlayerInterface::battleAttack(const BattleID & battleID, const BattleAttac
|
||||
info.secondaryDefender.push_back(cb->getBattle(battleID)->battleGetStackByID(elem.stackAttacked));
|
||||
}
|
||||
}
|
||||
assert(info.defender != nullptr);
|
||||
assert(info.defender != nullptr || (info.spellEffect != SpellID::NONE && info.indirectAttack));
|
||||
assert(info.attacker != nullptr);
|
||||
|
||||
battleInt->stackAttacking(info);
|
||||
|
Reference in New Issue
Block a user