Skip to content

Instantly share code, notes, and snippets.

@Pandragon
Created September 24, 2015 03:07
Show Gist options
  • Save Pandragon/199c99623640d54b05df to your computer and use it in GitHub Desktop.
Save Pandragon/199c99623640d54b05df to your computer and use it in GitHub Desktop.
### 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