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...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..