Vanished players no longer get hit by AoE effects

Fixes #1964
This commit is contained in:
TfT_02 2014-04-05 13:12:20 +02:00
parent f0ee708710
commit a9488bc18b
2 changed files with 6 additions and 0 deletions

View File

@ -9,6 +9,7 @@ Key:
Version 1.5.01-dev
= Fixed bug where the Updater was running on the main thread.
! Vanished players no longer get hit by AoE effects
Version 1.5.00
+ Added Podzol & Red Sand to Excavation

View File

@ -502,6 +502,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;