1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-07-06 23:54:43 +02:00

Vanished players no longer get hit by AoE effects

Fixes 
This commit is contained in:
TfT_02
2014-04-05 13:12:20 +02:00
parent f88dd29926
commit e812a949db
2 changed files with 6 additions and 0 deletions
Changelog.txt
src/main/java/com/gmail/nossr50/util/skills

@ -501,6 +501,11 @@ public final class CombatUtils {
return false;
}
// Vanished players should not be able to get hit by AoE effects
if (!player.canSee(defender)) {
return false;
}
// It may seem a bit redundant but we need a check here to prevent bleed from being applied in applyAbilityAoE()
if (callFakeDamageEvent(player, entity, 1.0) == 0) {
return false;