Skip to content
Snippets Groups Projects
Commit 1711e192 authored by Rumen Nikiforov's avatar Rumen Nikiforov
Browse files

BETA: Visual glitch fix for pet owners that appeared to be healed when its pets received a heal.

        * ExRegMax packet was sent to the Owner of a pet/servitor when it get healed by overtime effect but it shouldn't.
parent 08c500fe
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,6 @@
*/
package handlers.effecthandlers;
import com.l2jserver.gameserver.model.actor.instance.L2DoorInstance;
import com.l2jserver.gameserver.model.effects.EffectTemplate;
import com.l2jserver.gameserver.model.effects.L2Effect;
import com.l2jserver.gameserver.model.effects.L2EffectType;
......@@ -50,7 +49,10 @@ public class HealOverTime extends L2Effect
@Override
public boolean onStart()
{
getEffected().sendPacket(new ExRegMax(calc(), getTotalCount() * getAbnormalTime(), getAbnormalTime()));
if (getEffected().isPlayer())
{
getEffected().sendPacket(new ExRegMax(calc(), getTotalCount() * getAbnormalTime(), getAbnormalTime()));
}
return true;
}
......@@ -60,7 +62,7 @@ public class HealOverTime extends L2Effect
if (getEffected().isDead())
return false;
if (getEffected() instanceof L2DoorInstance)
else if (getEffected().isDoor())
return false;
double hp = getEffected().getCurrentHp();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment