mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
* fixed crash when AI attacked player before his first turn * fixed various crashes when mass-effect spells affected town turrets in sieges * some refactoring around spell positiveness
This commit is contained in:
@@ -1209,7 +1209,7 @@ DLL_LINKAGE void StacksHealedOrResurrected::applyGs( CGameState *gs )
|
||||
BOOST_FOREACH(Bonus *b, tmpFeatures)
|
||||
{
|
||||
const CSpell *s = b->sourceSpell();
|
||||
if(s && s->positiveness < 0)
|
||||
if(s && s->isNegative())
|
||||
{
|
||||
changedStack->removeBonus(b);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user