Skip to content
Snippets Groups Projects
Commit 5388f9a2 authored by Zoey76's avatar Zoey76
Browse files

BETA: Fixing chance skill trigger effect.

Reported by: baluu, blacksea
Tested by: blacksea
parent 785b857f
No related branches found
No related tags found
No related merge requests found
...@@ -48,7 +48,7 @@ public class ChanceSkillTrigger extends L2Effect ...@@ -48,7 +48,7 @@ public class ChanceSkillTrigger extends L2Effect
@Override @Override
public L2EffectType getEffectType() public L2EffectType getEffectType()
{ {
return L2EffectType.CHANCE_SKILL_TRIGGER; return L2EffectType.NONE;
} }
@Override @Override
...@@ -73,14 +73,14 @@ public class ChanceSkillTrigger extends L2Effect ...@@ -73,14 +73,14 @@ public class ChanceSkillTrigger extends L2Effect
public boolean onActionTime() public boolean onActionTime()
{ {
getEffected().onActionTimeChanceEffect(getSkill().getElement()); getEffected().onActionTimeChanceEffect(getSkill().getElement());
return false; return getSkill().isPassive();
} }
@Override @Override
public void onExit() public void onExit()
{ {
// trigger only if effect in use and successfully ticked to the end // trigger only if effect in use and successfully ticked to the end
if (isInUse() && (getTickCount() == getEffectTemplate().getTotalTickCount())) if (isInUse() && (getTickCount() >= getEffectTemplate().getTotalTickCount()))
{ {
getEffected().onExitChanceEffect(getSkill().getElement()); getEffected().onExitChanceEffect(getSkill().getElement());
} }
......
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