2
0
Эх сурвалжийг харах

Fix bug where dodge would check the wrong player

TfT_02 11 жил өмнө
parent
commit
20092d55fd

+ 1 - 0
Changelog.txt

@@ -14,6 +14,7 @@ Version 1.5.01-dev
  = Fixed bug where the Updater was running on the main thread.
  = Fixed bug when players would use /ptp without being in a party
  = Fixed bug where player didn't have a mcMMOPlayer object in AsyncPlayerChatEvent
+ = Fixed bug where dodge would check the wrong player skill level
  ! Vanished players no longer get hit by AoE effects
 
 Version 1.5.00

+ 1 - 1
src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java

@@ -283,7 +283,7 @@ public final class CombatUtils {
             McMMOPlayer mcMMOPlayer = UserManager.getPlayer(player);
             AcrobaticsManager acrobaticsManager = mcMMOPlayer.getAcrobaticsManager();
 
-            if (acrobaticsManager.canDodge(damager)) {
+            if (acrobaticsManager.canDodge(target)) {
                 event.setDamage(acrobaticsManager.dodgeCheck(event.getDamage()));
             }