mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-10 23:48:04 +02:00
Fixed CID 1375687
This commit is contained in:
parent
1c95c51ffb
commit
f5cdaece6f
@ -123,7 +123,7 @@ bool CAttackAnimation::checkInitialConditions()
|
|||||||
CBattleStackAnimation * stAnim = dynamic_cast<CBattleStackAnimation *>(elem.first);
|
CBattleStackAnimation * stAnim = dynamic_cast<CBattleStackAnimation *>(elem.first);
|
||||||
CReverseAnimation * revAnim = dynamic_cast<CReverseAnimation *>(stAnim);
|
CReverseAnimation * revAnim = dynamic_cast<CReverseAnimation *>(stAnim);
|
||||||
|
|
||||||
if(revAnim) // enemy must be fully reversed
|
if(revAnim && attackedStack) // enemy must be fully reversed
|
||||||
{
|
{
|
||||||
if (revAnim->stack->ID == attackedStack->ID)
|
if (revAnim->stack->ID == attackedStack->ID)
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user