Jump to content
  • 0

[HELP]Heal disable for freya


Question

Posted

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();

4 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock