Index: java/net/sf/l2j/gameserver/network/clientpackets/RequestMagicSkillUse.java
===================================================================
--- java/net/sf/l2j/gameserver/network/clientpackets/RequestMagicSkillUse.java (revision 2)
+++ java/net/sf/l2j/gameserver/network/clientpackets/RequestMagicSkillUse.java (working copy)
@@ -17,7 +17,10 @@
import net.sf.l2j.gameserver.datatables.SkillTable;
import net.sf.l2j.gameserver.model.L2Skill;
+import net.sf.l2j.gameserver.model.actor.instance.L2MonsterInstance;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.network.serverpackets.ActionFailed;
@@ -69,6 +72,19 @@
if (skill.isToggle() && activeChar.isMounted())
return;
+ if (activeChar.getTarget() instanceof L2MonsterInstance)
+ {
+ switch (skill.getSkillType())
+ {
+ case BUFF:
+ return;
+ case HEAL:
+ return;
+ case HEAL_PERCENT:
+ return;
+ }
+ }
+
activeChar.useMagic(skill, _ctrlPressed, _shiftPressed);
}
else