1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00
* handle BIND_EFFECT by bonus type
This commit is contained in:
AlexVinS
2016-10-01 08:04:39 +03:00
parent 04f7b4f951
commit a1ff409080
2 changed files with 2 additions and 2 deletions

View File

@ -4482,7 +4482,7 @@ void CGameHandler::stackTurnTrigger(const CStack * st)
if (st->alive())
{
//unbind
if (st->getEffect (SpellID::BIND))
if(st->hasBonus(Selector::type(Bonus::BIND_EFFECT)))
{
bool unbind = true;
BonusList bl = *(st->getBonuses(Selector::type(Bonus::BIND_EFFECT)));