mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
fix(Core/Spells): Divine Shield should prevent from environmental damage (#7071)
- Closes #5804
This commit is contained in:
@@ -760,7 +760,7 @@ void Player::StopMirrorTimer(MirrorTimerType Type)
|
|||||||
bool Player::IsImmuneToEnvironmentalDamage()
|
bool Player::IsImmuneToEnvironmentalDamage()
|
||||||
{
|
{
|
||||||
// check for GM and death state included in isAttackableByAOE
|
// 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)
|
uint32 Player::EnvironmentalDamage(EnviromentalDamage type, uint32 damage)
|
||||||
|
|||||||
Reference in New Issue
Block a user