mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
Play sound if spell was resisted
This commit is contained in:
parent
d83eedb8dd
commit
9895dca615
@ -406,6 +406,13 @@ void BattleInterface::spellCast(const BattleSpellCast * sc)
|
||||
});
|
||||
}
|
||||
|
||||
if (!sc->resistedCres.empty())
|
||||
{
|
||||
executeOnAnimationCondition(EAnimationEvents::HIT, true, [=](){
|
||||
CCS->soundh->playSound("MAGICRES");
|
||||
});
|
||||
}
|
||||
|
||||
for(auto & elem : sc->resistedCres)
|
||||
{
|
||||
auto stack = curInt->cb->battleGetStackByID(elem, false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user