mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
Fixed issue with Acrobatics Dodge checks.
This commit is contained in:
parent
46d0b50c52
commit
0093f769f0
@ -78,13 +78,16 @@ public class Acrobatics {
|
|||||||
public static void dodgeChecks(EntityDamageByEntityEvent event) {
|
public static void dodgeChecks(EntityDamageByEntityEvent event) {
|
||||||
final int DODGE_MODIFIER = 120;
|
final int DODGE_MODIFIER = 120;
|
||||||
|
|
||||||
Player attacker = (Player) event.getDamager();
|
|
||||||
Player defender = (Player) event.getEntity();
|
Player defender = (Player) event.getEntity();
|
||||||
PlayerProfile PPd = Users.getProfile(defender);
|
PlayerProfile PPd = Users.getProfile(defender);
|
||||||
|
|
||||||
/* PARTY CHECK */
|
/* PARTY CHECK */
|
||||||
if (Party.getInstance().inSameParty(defender, attacker)) {
|
if (event.getDamager() instanceof Player) {
|
||||||
return;
|
Player attacker = (Player) event.getDamager();
|
||||||
|
|
||||||
|
if (Party.getInstance().inSameParty(defender, attacker)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mcPermissions.getInstance().acrobatics(defender)) {
|
if (mcPermissions.getInstance().acrobatics(defender)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user