Created
September 24, 2015 03:07
-
-
Save Pandragon/199c99623640d54b05df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Eclipse Workspace Patch 1.0 | |
#P L2J_DataPack | |
Index: dist/game/data/scripts/handlers/effecthandlers/MagicalAttackMp.java | |
=================================================================== | |
--- dist/game/data/scripts/handlers/effecthandlers/MagicalAttackMp.java (revision 18804) | |
+++ dist/game/data/scripts/handlers/effecthandlers/MagicalAttackMp.java (working copy) | |
@@ -47,6 +47,10 @@ | |
{ | |
return false; | |
} | |
+ if (info.getEffector().isPlayer() && info.getEffected().isPlayer() && !info.getEffected().getActingPlayer().canAttackCharacter(info.getEffector().getActingPlayer())) | |
+ { | |
+ return false; | |
+ } | |
if (!Formulas.calcMagicAffected(info.getEffector(), info.getEffected(), info.getSkill())) | |
{ | |
if (info.getEffector().isPlayer()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment