mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Fixed issue with Acrobatics Dodge checks.
This commit is contained in:
parent
46d0b50c52
commit
0093f769f0
@ -78,14 +78,17 @@ 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 (event.getDamager() instanceof Player) {
|
||||||
|
Player attacker = (Player) event.getDamager();
|
||||||
|
|
||||||
if (Party.getInstance().inSameParty(defender, attacker)) {
|
if (Party.getInstance().inSameParty(defender, attacker)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (mcPermissions.getInstance().acrobatics(defender)) {
|
if (mcPermissions.getInstance().acrobatics(defender)) {
|
||||||
int skillCheck = 0;
|
int skillCheck = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user