mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
* added new spells
- dispel - armageddon * spellbook cannot be opened by L-click on hero in battle when it shouldn't be possible * minor changes
This commit is contained in:
@ -2304,7 +2304,7 @@ void CPlayerInterface::battleStacksAttacked(std::set<BattleStackAttacked> & bsa)
|
||||
std::vector<CBattleInterface::SStackAttackedInfo> arg;
|
||||
for(std::set<BattleStackAttacked>::iterator i = bsa.begin(); i != bsa.end(); i++)
|
||||
{
|
||||
if(i->isEffect())
|
||||
if(i->isEffect() && i->effect != 12) //and not armageddon
|
||||
{
|
||||
battleInt->displayEffect(i->effect, cb->battleGetStackByID(i->stackAttacked)->position);
|
||||
}
|
||||
@ -2312,6 +2312,11 @@ void CPlayerInterface::battleStacksAttacked(std::set<BattleStackAttacked> & bsa)
|
||||
arg.push_back(to_put);
|
||||
}
|
||||
|
||||
if(bsa.begin()->isEffect() && bsa.begin()->effect == 12) //for armageddon - I hope this condition is enough
|
||||
{
|
||||
battleInt->displayEffect(bsa.begin()->effect, -1);
|
||||
}
|
||||
|
||||
battleInt->stacksAreAttacked(arg);
|
||||
}
|
||||
void CPlayerInterface::battleAttack(BattleAttack *ba)
|
||||
|
Reference in New Issue
Block a user