1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-07 00:58:39 +02:00

* magic arrow flight animation (full hit animation will be later as it should be implemented via support for AC format)

* fixed bug with dying unit
* minor things
This commit is contained in:
mateuszb
2008-10-18 13:50:18 +00:00
parent 9d099e8c54
commit 9a8e009862
4 changed files with 76 additions and 10 deletions

View File

@ -2137,10 +2137,15 @@ void CPlayerInterface::battleStackMoved(int ID, int dest)
void CPlayerInterface::battleSpellCasted(SpellCasted *sc)
{
boost::unique_lock<boost::recursive_mutex> un(*pim);
battleInt->spellCasted(sc);
}
void CPlayerInterface::battleStackAttacked(BattleStackAttacked * bsa)
{
boost::unique_lock<boost::recursive_mutex> un(*pim);
if(bsa->killed())
battleInt->stackKilled(bsa->stackAttacked, bsa->damageAmount, bsa->killedAmount, -1, false, bsa->effect);
else
battleInt->stackIsAttacked(bsa->stackAttacked, bsa->damageAmount, bsa->killedAmount, -1, false, bsa->effect);
}
void CPlayerInterface::battleAttack(BattleAttack *ba)
{