Fixed issue with Acrobatics Dodge checks.

This commit is contained in:
GJ 2012-03-12 03:26:39 -04:00
parent 46d0b50c52
commit 0093f769f0

View File

@ -78,14 +78,17 @@ public class Acrobatics {
public static void dodgeChecks(EntityDamageByEntityEvent event) {
final int DODGE_MODIFIER = 120;
Player attacker = (Player) event.getDamager();
Player defender = (Player) event.getEntity();
PlayerProfile PPd = Users.getProfile(defender);
/* PARTY CHECK */
if (event.getDamager() instanceof Player) {
Player attacker = (Player) event.getDamager();
if (Party.getInstance().inSameParty(defender, attacker)) {
return;
}
}
if (mcPermissions.getInstance().acrobatics(defender)) {
int skillCheck = 0;