mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-23 00:28:08 +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:
@ -549,7 +549,16 @@ DLL_EXPORT void SetStackEffect::applyGs( CGameState *gs )
|
||||
{
|
||||
CStack *s = gs->curB->getStack(id);
|
||||
if(s)
|
||||
s->effects.push_back(effect);
|
||||
{
|
||||
if(effect.id == 35) //dispel - removing all effects
|
||||
{
|
||||
s->effects.clear();
|
||||
}
|
||||
else //adding effect
|
||||
{
|
||||
s->effects.push_back(effect);
|
||||
}
|
||||
}
|
||||
else
|
||||
tlog1 << "Cannot find stack " << id << std::endl;
|
||||
}
|
||||
|
Reference in New Issue
Block a user