Napster321 Posted January 9, 2013 Posted January 9, 2013 how can i disable heal on l2 attackable? i tried that Index: java/com/l2jserver/gameserver/skills/effects/EffectHealOverTime.java =================================================================== --- java/com/l2jserver/gameserver/skills/effects/EffectHealOverTime.java (revision 7) +++ java/com/l2jserver/gameserver/skills/effects/EffectHealOverTime.java (working copy) @@ -15,8 +15,10 @@ package com.l2jserver.gameserver.skills.effects; import com.l2jserver.gameserver.model.L2Effect; +import com.l2jserver.gameserver.model.actor.L2Attackable; import com.l2jserver.gameserver.model.actor.instance.L2DoorInstance; import com.l2jserver.gameserver.network.serverpackets.ExRegMax; import com.l2jserver.gameserver.network.serverpackets.StatusUpdate; import com.l2jserver.gameserver.skills.Env; import com.l2jserver.gameserver.templates.effects.EffectTemplate; @@ -79,6 +81,9 @@ if (getEffected() instanceof L2DoorInstance) return false; + if (getEffected() instanceof L2Attackable) + return false; + double hp = getEffected().getCurrentHp(); double maxhp = getEffected().getMaxHp(); hp += calc();
0 Napster321 Posted January 9, 2013 Author Posted January 9, 2013 go into handlers and do that damn too easy :D thanks i should remove from EffectHealOverTime.java or not?
Question
Napster321
how can i disable heal on l2 attackable? i tried that
4 answers to this question
Recommended Posts