mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
* hopefully fixed bug reported buy krystian1995 (wrongly displayed prayer animation)
* partially fixed bug with double getting hit animation
This commit is contained in:
parent
3a66dc2b7c
commit
ee54e5d2e2
@ -2080,8 +2080,11 @@ void CPlayerInterface::battleSpellCasted(SpellCasted *sc)
|
|||||||
}
|
}
|
||||||
void CPlayerInterface::battleStackAttacked(BattleStackAttacked * bsa)
|
void CPlayerInterface::battleStackAttacked(BattleStackAttacked * bsa)
|
||||||
{
|
{
|
||||||
battleInt->displayEffect(bsa->effect, cb->battleGetStackByID(bsa->stackAttacked)->position, cb->battleGetStackByID(bsa->stackAttacked)->attackerOwned);
|
|
||||||
boost::unique_lock<boost::recursive_mutex> un(*pim);
|
boost::unique_lock<boost::recursive_mutex> un(*pim);
|
||||||
|
if(bsa->isEffect())
|
||||||
|
{
|
||||||
|
battleInt->displayEffect(bsa->effect, cb->battleGetStackByID(bsa->stackAttacked)->position, cb->battleGetStackByID(bsa->stackAttacked)->attackerOwned);
|
||||||
|
}
|
||||||
if(bsa->killed())
|
if(bsa->killed())
|
||||||
battleInt->stackKilled(bsa->stackAttacked, bsa->damageAmount, bsa->killedAmount, -1, false);
|
battleInt->stackKilled(bsa->stackAttacked, bsa->damageAmount, bsa->killedAmount, -1, false);
|
||||||
else
|
else
|
||||||
@ -2094,10 +2097,10 @@ void CPlayerInterface::battleAttack(BattleAttack *ba)
|
|||||||
battleInt->stackIsShooting(ba->stackAttacking,cb->battleGetPos(ba->bsa.stackAttacked));
|
battleInt->stackIsShooting(ba->stackAttacking,cb->battleGetPos(ba->bsa.stackAttacked));
|
||||||
else
|
else
|
||||||
battleInt->stackAttacking( ba->stackAttacking, ba->counter() ? curAction->destinationTile : curAction->additionalInfo );
|
battleInt->stackAttacking( ba->stackAttacking, ba->counter() ? curAction->destinationTile : curAction->additionalInfo );
|
||||||
if(ba->killed())
|
/*if(ba->killed())
|
||||||
battleInt->stackKilled(ba->bsa.stackAttacked, ba->bsa.damageAmount, ba->bsa.killedAmount, ba->stackAttacking, ba->shot());
|
battleInt->stackKilled(ba->bsa.stackAttacked, ba->bsa.damageAmount, ba->bsa.killedAmount, ba->stackAttacking, ba->shot());
|
||||||
else
|
else
|
||||||
battleInt->stackIsAttacked(ba->bsa.stackAttacked, ba->bsa.damageAmount, ba->bsa.killedAmount, ba->stackAttacking, ba->shot());
|
battleInt->stackIsAttacked(ba->bsa.stackAttacked, ba->bsa.damageAmount, ba->bsa.killedAmount, ba->stackAttacking, ba->shot());*/
|
||||||
}
|
}
|
||||||
void CPlayerInterface::showComp(SComponent comp)
|
void CPlayerInterface::showComp(SComponent comp)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user