fix(Core/Spells): Divine Shield should prevent from environmental damage (#7071)

- Closes #5804
This commit is contained in:
UltraNix 2021-07-25 19:44:16 +02:00 committed by GitHub
parent b344fd7f6a
commit 1f3a097761
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -760,7 +760,7 @@ void Player::StopMirrorTimer(MirrorTimerType Type)
bool Player::IsImmuneToEnvironmentalDamage()
{
// check for GM and death state included in isAttackableByAOE
return (!isTargetableForAttack(false, nullptr));
return (!isTargetableForAttack(false, nullptr)) || isTotalImmune();
}
uint32 Player::EnvironmentalDamage(EnviromentalDamage type, uint32 damage)