Fixed an incorrect if statement in Methods

It checked if a player HAD their bending toggled in order to resist
Bloodbending.
This commit is contained in:
Brendan Wilson 2015-02-04 17:16:48 -05:00
parent 2ff4484394
commit 973c39eec3
2 changed files with 1 additions and 2 deletions

View file

@ -186,7 +186,7 @@ public class Methods {
if (AvatarState.isAvatarState(player))
if (isChiBlocked(player.getName()))
return true;
if (canBend(player.getName(), "Bloodbending") && Methods.getBendingPlayer(player.getName()).isToggled)
if (canBend(player.getName(), "Bloodbending") && !Methods.getBendingPlayer(player.getName()).isToggled)
return false;
return true;
}

View file

@ -67,7 +67,6 @@ public class PKListener implements Listener {
@EventHandler
public void onHorizontalCollision(HorizontalVelocityChangeEvent e)
{
if(e.getEntity() instanceof LivingEntity)
{
Methods.damageEntity(e.getInstigator(), e.getEntity(), e.getDifference().length() * 2);