1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-23 00:28:08 +02:00

Some work towards Eagle Eye skill support.

This commit is contained in:
Michał W. Urbańczyk
2011-02-11 19:12:08 +00:00
parent ab20e024c0
commit 9f90ef58ca
3 changed files with 61 additions and 1 deletions

View File

@ -973,7 +973,13 @@ DLL_EXPORT void StartAction::applyGs( CGameState *gs )
CStack *st = gs->curB->getStack(ba.stackNumber);
if(ba.actionType != BattleAction::HERO_SPELL) //don't check for stack if it's custom action by hero
{
assert(st);
}
else
{
gs->curB->usedSpellsHistory[ba.side].push_back(VLC->spellh->spells[ba.additionalInfo]);
}
switch(ba.actionType)
{