Created L2Character method abortAllSkillCasters.
This commit is contained in:
parent
6943ed2f94
commit
47300f236f
@ -29,7 +29,6 @@ import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
|||||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||||
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
||||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import com.l2jmobius.gameserver.model.skills.SkillCaster;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Block Actions effect implementation.
|
* Block Actions effect implementation.
|
||||||
@ -63,10 +62,7 @@ public final class BlockActions extends AbstractEffect
|
|||||||
_allowedSkills.stream().forEach(effected::addBlockActionsAllowedSkill);
|
_allowedSkills.stream().forEach(effected::addBlockActionsAllowedSkill);
|
||||||
effected.startParalyze();
|
effected.startParalyze();
|
||||||
// Cancel running skill casters.
|
// Cancel running skill casters.
|
||||||
for (SkillCaster skillCaster : effected.getSkillCasters())
|
effected.abortAllSkillCasters();
|
||||||
{
|
|
||||||
skillCaster.stopCasting(true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -2836,6 +2836,21 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Abort the cast of all skills.
|
||||||
|
*/
|
||||||
|
public final void abortAllSkillCasters()
|
||||||
|
{
|
||||||
|
for (SkillCaster skillCaster : getSkillCasters())
|
||||||
|
{
|
||||||
|
skillCaster.stopCasting(true);
|
||||||
|
if (isPlayer())
|
||||||
|
{
|
||||||
|
getActingPlayer().setQueuedSkill(null, null, false, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Abort the cast of normal non-simultaneous skills.
|
* Abort the cast of normal non-simultaneous skills.
|
||||||
* @return {@code true} if a skill casting has been aborted, {@code false} otherwise.
|
* @return {@code true} if a skill casting has been aborted, {@code false} otherwise.
|
||||||
|
@ -425,10 +425,7 @@ public abstract class L2Summon extends L2Playable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Cancel running skill casters.
|
// Cancel running skill casters.
|
||||||
for (SkillCaster skillCaster : getSkillCasters())
|
abortAllSkillCasters();
|
||||||
{
|
|
||||||
skillCaster.stopCasting(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
stopAllEffects();
|
stopAllEffects();
|
||||||
stopHpMpRegeneration();
|
stopHpMpRegeneration();
|
||||||
|
@ -26,7 +26,6 @@ import com.l2jmobius.gameserver.model.actor.templates.L2NpcTemplate;
|
|||||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import com.l2jmobius.gameserver.model.skills.SkillCaster;
|
|
||||||
import com.l2jmobius.gameserver.util.MinionList;
|
import com.l2jmobius.gameserver.util.MinionList;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -249,10 +248,7 @@ public class L2MonsterInstance extends L2Attackable
|
|||||||
// Might need some exceptions here, but it will prevent the monster buffing player bug.
|
// Might need some exceptions here, but it will prevent the monster buffing player bug.
|
||||||
if (!skill.isBad() && (getTarget() != null) && getTarget().isPlayer())
|
if (!skill.isBad() && (getTarget() != null) && getTarget().isPlayer())
|
||||||
{
|
{
|
||||||
for (SkillCaster skillCaster : getSkillCasters())
|
abortAllSkillCasters();
|
||||||
{
|
|
||||||
skillCaster.stopCasting(true);
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
super.doCast(skill, item, ctrlPressed, shiftPressed);
|
super.doCast(skill, item, ctrlPressed, shiftPressed);
|
||||||
|
@ -29,7 +29,6 @@ import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
|||||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||||
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
||||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import com.l2jmobius.gameserver.model.skills.SkillCaster;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Block Actions effect implementation.
|
* Block Actions effect implementation.
|
||||||
@ -63,10 +62,7 @@ public final class BlockActions extends AbstractEffect
|
|||||||
_allowedSkills.stream().forEach(effected::addBlockActionsAllowedSkill);
|
_allowedSkills.stream().forEach(effected::addBlockActionsAllowedSkill);
|
||||||
effected.startParalyze();
|
effected.startParalyze();
|
||||||
// Cancel running skill casters.
|
// Cancel running skill casters.
|
||||||
for (SkillCaster skillCaster : effected.getSkillCasters())
|
effected.abortAllSkillCasters();
|
||||||
{
|
|
||||||
skillCaster.stopCasting(true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -2836,6 +2836,21 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Abort the cast of all skills.
|
||||||
|
*/
|
||||||
|
public final void abortAllSkillCasters()
|
||||||
|
{
|
||||||
|
for (SkillCaster skillCaster : getSkillCasters())
|
||||||
|
{
|
||||||
|
skillCaster.stopCasting(true);
|
||||||
|
if (isPlayer())
|
||||||
|
{
|
||||||
|
getActingPlayer().setQueuedSkill(null, null, false, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Abort the cast of normal non-simultaneous skills.
|
* Abort the cast of normal non-simultaneous skills.
|
||||||
* @return {@code true} if a skill casting has been aborted, {@code false} otherwise.
|
* @return {@code true} if a skill casting has been aborted, {@code false} otherwise.
|
||||||
|
@ -425,10 +425,7 @@ public abstract class L2Summon extends L2Playable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Cancel running skill casters.
|
// Cancel running skill casters.
|
||||||
for (SkillCaster skillCaster : getSkillCasters())
|
abortAllSkillCasters();
|
||||||
{
|
|
||||||
skillCaster.stopCasting(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
stopAllEffects();
|
stopAllEffects();
|
||||||
stopHpMpRegeneration();
|
stopHpMpRegeneration();
|
||||||
|
@ -26,7 +26,6 @@ import com.l2jmobius.gameserver.model.actor.templates.L2NpcTemplate;
|
|||||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import com.l2jmobius.gameserver.model.skills.SkillCaster;
|
|
||||||
import com.l2jmobius.gameserver.util.MinionList;
|
import com.l2jmobius.gameserver.util.MinionList;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -249,10 +248,7 @@ public class L2MonsterInstance extends L2Attackable
|
|||||||
// Might need some exceptions here, but it will prevent the monster buffing player bug.
|
// Might need some exceptions here, but it will prevent the monster buffing player bug.
|
||||||
if (!skill.isBad() && (getTarget() != null) && getTarget().isPlayer())
|
if (!skill.isBad() && (getTarget() != null) && getTarget().isPlayer())
|
||||||
{
|
{
|
||||||
for (SkillCaster skillCaster : getSkillCasters())
|
abortAllSkillCasters();
|
||||||
{
|
|
||||||
skillCaster.stopCasting(true);
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
super.doCast(skill, item, ctrlPressed, shiftPressed);
|
super.doCast(skill, item, ctrlPressed, shiftPressed);
|
||||||
|
@ -29,7 +29,6 @@ import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
|||||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||||
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
||||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import com.l2jmobius.gameserver.model.skills.SkillCaster;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Block Actions effect implementation.
|
* Block Actions effect implementation.
|
||||||
@ -63,10 +62,7 @@ public final class BlockActions extends AbstractEffect
|
|||||||
_allowedSkills.stream().forEach(effected::addBlockActionsAllowedSkill);
|
_allowedSkills.stream().forEach(effected::addBlockActionsAllowedSkill);
|
||||||
effected.startParalyze();
|
effected.startParalyze();
|
||||||
// Cancel running skill casters.
|
// Cancel running skill casters.
|
||||||
for (SkillCaster skillCaster : effected.getSkillCasters())
|
effected.abortAllSkillCasters();
|
||||||
{
|
|
||||||
skillCaster.stopCasting(true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -2836,6 +2836,21 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Abort the cast of all skills.
|
||||||
|
*/
|
||||||
|
public final void abortAllSkillCasters()
|
||||||
|
{
|
||||||
|
for (SkillCaster skillCaster : getSkillCasters())
|
||||||
|
{
|
||||||
|
skillCaster.stopCasting(true);
|
||||||
|
if (isPlayer())
|
||||||
|
{
|
||||||
|
getActingPlayer().setQueuedSkill(null, null, false, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Abort the cast of normal non-simultaneous skills.
|
* Abort the cast of normal non-simultaneous skills.
|
||||||
* @return {@code true} if a skill casting has been aborted, {@code false} otherwise.
|
* @return {@code true} if a skill casting has been aborted, {@code false} otherwise.
|
||||||
|
@ -425,10 +425,7 @@ public abstract class L2Summon extends L2Playable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Cancel running skill casters.
|
// Cancel running skill casters.
|
||||||
for (SkillCaster skillCaster : getSkillCasters())
|
abortAllSkillCasters();
|
||||||
{
|
|
||||||
skillCaster.stopCasting(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
stopAllEffects();
|
stopAllEffects();
|
||||||
stopHpMpRegeneration();
|
stopHpMpRegeneration();
|
||||||
|
@ -26,7 +26,6 @@ import com.l2jmobius.gameserver.model.actor.templates.L2NpcTemplate;
|
|||||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import com.l2jmobius.gameserver.model.skills.SkillCaster;
|
|
||||||
import com.l2jmobius.gameserver.util.MinionList;
|
import com.l2jmobius.gameserver.util.MinionList;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -249,10 +248,7 @@ public class L2MonsterInstance extends L2Attackable
|
|||||||
// Might need some exceptions here, but it will prevent the monster buffing player bug.
|
// Might need some exceptions here, but it will prevent the monster buffing player bug.
|
||||||
if (!skill.isBad() && (getTarget() != null) && getTarget().isPlayer())
|
if (!skill.isBad() && (getTarget() != null) && getTarget().isPlayer())
|
||||||
{
|
{
|
||||||
for (SkillCaster skillCaster : getSkillCasters())
|
abortAllSkillCasters();
|
||||||
{
|
|
||||||
skillCaster.stopCasting(true);
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
super.doCast(skill, item, ctrlPressed, shiftPressed);
|
super.doCast(skill, item, ctrlPressed, shiftPressed);
|
||||||
|
@ -29,7 +29,6 @@ import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
|||||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||||
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
||||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import com.l2jmobius.gameserver.model.skills.SkillCaster;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Block Actions effect implementation.
|
* Block Actions effect implementation.
|
||||||
@ -63,10 +62,7 @@ public final class BlockActions extends AbstractEffect
|
|||||||
_allowedSkills.stream().forEach(effected::addBlockActionsAllowedSkill);
|
_allowedSkills.stream().forEach(effected::addBlockActionsAllowedSkill);
|
||||||
effected.startParalyze();
|
effected.startParalyze();
|
||||||
// Cancel running skill casters.
|
// Cancel running skill casters.
|
||||||
for (SkillCaster skillCaster : effected.getSkillCasters())
|
effected.abortAllSkillCasters();
|
||||||
{
|
|
||||||
skillCaster.stopCasting(true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -2836,6 +2836,21 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Abort the cast of all skills.
|
||||||
|
*/
|
||||||
|
public final void abortAllSkillCasters()
|
||||||
|
{
|
||||||
|
for (SkillCaster skillCaster : getSkillCasters())
|
||||||
|
{
|
||||||
|
skillCaster.stopCasting(true);
|
||||||
|
if (isPlayer())
|
||||||
|
{
|
||||||
|
getActingPlayer().setQueuedSkill(null, null, false, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Abort the cast of normal non-simultaneous skills.
|
* Abort the cast of normal non-simultaneous skills.
|
||||||
* @return {@code true} if a skill casting has been aborted, {@code false} otherwise.
|
* @return {@code true} if a skill casting has been aborted, {@code false} otherwise.
|
||||||
|
@ -425,10 +425,7 @@ public abstract class L2Summon extends L2Playable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Cancel running skill casters.
|
// Cancel running skill casters.
|
||||||
for (SkillCaster skillCaster : getSkillCasters())
|
abortAllSkillCasters();
|
||||||
{
|
|
||||||
skillCaster.stopCasting(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
stopAllEffects();
|
stopAllEffects();
|
||||||
stopHpMpRegeneration();
|
stopHpMpRegeneration();
|
||||||
|
@ -26,7 +26,6 @@ import com.l2jmobius.gameserver.model.actor.templates.L2NpcTemplate;
|
|||||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import com.l2jmobius.gameserver.model.skills.SkillCaster;
|
|
||||||
import com.l2jmobius.gameserver.util.MinionList;
|
import com.l2jmobius.gameserver.util.MinionList;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -249,10 +248,7 @@ public class L2MonsterInstance extends L2Attackable
|
|||||||
// Might need some exceptions here, but it will prevent the monster buffing player bug.
|
// Might need some exceptions here, but it will prevent the monster buffing player bug.
|
||||||
if (!skill.isBad() && (getTarget() != null) && getTarget().isPlayer())
|
if (!skill.isBad() && (getTarget() != null) && getTarget().isPlayer())
|
||||||
{
|
{
|
||||||
for (SkillCaster skillCaster : getSkillCasters())
|
abortAllSkillCasters();
|
||||||
{
|
|
||||||
skillCaster.stopCasting(true);
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
super.doCast(skill, item, ctrlPressed, shiftPressed);
|
super.doCast(skill, item, ctrlPressed, shiftPressed);
|
||||||
|
@ -29,7 +29,6 @@ import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
|||||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||||
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
||||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import com.l2jmobius.gameserver.model.skills.SkillCaster;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Block Actions effect implementation.
|
* Block Actions effect implementation.
|
||||||
@ -63,10 +62,7 @@ public final class BlockActions extends AbstractEffect
|
|||||||
_allowedSkills.stream().forEach(effected::addBlockActionsAllowedSkill);
|
_allowedSkills.stream().forEach(effected::addBlockActionsAllowedSkill);
|
||||||
effected.startParalyze();
|
effected.startParalyze();
|
||||||
// Cancel running skill casters.
|
// Cancel running skill casters.
|
||||||
for (SkillCaster skillCaster : effected.getSkillCasters())
|
effected.abortAllSkillCasters();
|
||||||
{
|
|
||||||
skillCaster.stopCasting(true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -2836,6 +2836,21 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Abort the cast of all skills.
|
||||||
|
*/
|
||||||
|
public final void abortAllSkillCasters()
|
||||||
|
{
|
||||||
|
for (SkillCaster skillCaster : getSkillCasters())
|
||||||
|
{
|
||||||
|
skillCaster.stopCasting(true);
|
||||||
|
if (isPlayer())
|
||||||
|
{
|
||||||
|
getActingPlayer().setQueuedSkill(null, null, false, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Abort the cast of normal non-simultaneous skills.
|
* Abort the cast of normal non-simultaneous skills.
|
||||||
* @return {@code true} if a skill casting has been aborted, {@code false} otherwise.
|
* @return {@code true} if a skill casting has been aborted, {@code false} otherwise.
|
||||||
|
@ -425,10 +425,7 @@ public abstract class L2Summon extends L2Playable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Cancel running skill casters.
|
// Cancel running skill casters.
|
||||||
for (SkillCaster skillCaster : getSkillCasters())
|
abortAllSkillCasters();
|
||||||
{
|
|
||||||
skillCaster.stopCasting(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
stopAllEffects();
|
stopAllEffects();
|
||||||
stopHpMpRegeneration();
|
stopHpMpRegeneration();
|
||||||
|
@ -26,7 +26,6 @@ import com.l2jmobius.gameserver.model.actor.templates.L2NpcTemplate;
|
|||||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import com.l2jmobius.gameserver.model.skills.SkillCaster;
|
|
||||||
import com.l2jmobius.gameserver.util.MinionList;
|
import com.l2jmobius.gameserver.util.MinionList;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -249,10 +248,7 @@ public class L2MonsterInstance extends L2Attackable
|
|||||||
// Might need some exceptions here, but it will prevent the monster buffing player bug.
|
// Might need some exceptions here, but it will prevent the monster buffing player bug.
|
||||||
if (!skill.isBad() && (getTarget() != null) && getTarget().isPlayer())
|
if (!skill.isBad() && (getTarget() != null) && getTarget().isPlayer())
|
||||||
{
|
{
|
||||||
for (SkillCaster skillCaster : getSkillCasters())
|
abortAllSkillCasters();
|
||||||
{
|
|
||||||
skillCaster.stopCasting(true);
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
super.doCast(skill, item, ctrlPressed, shiftPressed);
|
super.doCast(skill, item, ctrlPressed, shiftPressed);
|
||||||
|
@ -29,7 +29,6 @@ import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
|||||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||||
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
||||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import com.l2jmobius.gameserver.model.skills.SkillCaster;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Block Actions effect implementation.
|
* Block Actions effect implementation.
|
||||||
@ -63,10 +62,7 @@ public final class BlockActions extends AbstractEffect
|
|||||||
_allowedSkills.stream().forEach(effected::addBlockActionsAllowedSkill);
|
_allowedSkills.stream().forEach(effected::addBlockActionsAllowedSkill);
|
||||||
effected.startParalyze();
|
effected.startParalyze();
|
||||||
// Cancel running skill casters.
|
// Cancel running skill casters.
|
||||||
for (SkillCaster skillCaster : effected.getSkillCasters())
|
effected.abortAllSkillCasters();
|
||||||
{
|
|
||||||
skillCaster.stopCasting(true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -2836,6 +2836,21 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Abort the cast of all skills.
|
||||||
|
*/
|
||||||
|
public final void abortAllSkillCasters()
|
||||||
|
{
|
||||||
|
for (SkillCaster skillCaster : getSkillCasters())
|
||||||
|
{
|
||||||
|
skillCaster.stopCasting(true);
|
||||||
|
if (isPlayer())
|
||||||
|
{
|
||||||
|
getActingPlayer().setQueuedSkill(null, null, false, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Abort the cast of normal non-simultaneous skills.
|
* Abort the cast of normal non-simultaneous skills.
|
||||||
* @return {@code true} if a skill casting has been aborted, {@code false} otherwise.
|
* @return {@code true} if a skill casting has been aborted, {@code false} otherwise.
|
||||||
|
@ -425,10 +425,7 @@ public abstract class L2Summon extends L2Playable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Cancel running skill casters.
|
// Cancel running skill casters.
|
||||||
for (SkillCaster skillCaster : getSkillCasters())
|
abortAllSkillCasters();
|
||||||
{
|
|
||||||
skillCaster.stopCasting(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
stopAllEffects();
|
stopAllEffects();
|
||||||
stopHpMpRegeneration();
|
stopHpMpRegeneration();
|
||||||
|
@ -26,7 +26,6 @@ import com.l2jmobius.gameserver.model.actor.templates.L2NpcTemplate;
|
|||||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import com.l2jmobius.gameserver.model.skills.SkillCaster;
|
|
||||||
import com.l2jmobius.gameserver.util.MinionList;
|
import com.l2jmobius.gameserver.util.MinionList;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -249,10 +248,7 @@ public class L2MonsterInstance extends L2Attackable
|
|||||||
// Might need some exceptions here, but it will prevent the monster buffing player bug.
|
// Might need some exceptions here, but it will prevent the monster buffing player bug.
|
||||||
if (!skill.isBad() && (getTarget() != null) && getTarget().isPlayer())
|
if (!skill.isBad() && (getTarget() != null) && getTarget().isPlayer())
|
||||||
{
|
{
|
||||||
for (SkillCaster skillCaster : getSkillCasters())
|
abortAllSkillCasters();
|
||||||
{
|
|
||||||
skillCaster.stopCasting(true);
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
super.doCast(skill, item, ctrlPressed, shiftPressed);
|
super.doCast(skill, item, ctrlPressed, shiftPressed);
|
||||||
|
@ -29,7 +29,6 @@ import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
|||||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||||
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
||||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import com.l2jmobius.gameserver.model.skills.SkillCaster;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Block Actions effect implementation.
|
* Block Actions effect implementation.
|
||||||
@ -63,10 +62,7 @@ public final class BlockActions extends AbstractEffect
|
|||||||
_allowedSkills.stream().forEach(effected::addBlockActionsAllowedSkill);
|
_allowedSkills.stream().forEach(effected::addBlockActionsAllowedSkill);
|
||||||
effected.startParalyze();
|
effected.startParalyze();
|
||||||
// Cancel running skill casters.
|
// Cancel running skill casters.
|
||||||
for (SkillCaster skillCaster : effected.getSkillCasters())
|
effected.abortAllSkillCasters();
|
||||||
{
|
|
||||||
skillCaster.stopCasting(true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -2836,6 +2836,21 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Abort the cast of all skills.
|
||||||
|
*/
|
||||||
|
public final void abortAllSkillCasters()
|
||||||
|
{
|
||||||
|
for (SkillCaster skillCaster : getSkillCasters())
|
||||||
|
{
|
||||||
|
skillCaster.stopCasting(true);
|
||||||
|
if (isPlayer())
|
||||||
|
{
|
||||||
|
getActingPlayer().setQueuedSkill(null, null, false, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Abort the cast of normal non-simultaneous skills.
|
* Abort the cast of normal non-simultaneous skills.
|
||||||
* @return {@code true} if a skill casting has been aborted, {@code false} otherwise.
|
* @return {@code true} if a skill casting has been aborted, {@code false} otherwise.
|
||||||
|
@ -425,10 +425,7 @@ public abstract class L2Summon extends L2Playable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Cancel running skill casters.
|
// Cancel running skill casters.
|
||||||
for (SkillCaster skillCaster : getSkillCasters())
|
abortAllSkillCasters();
|
||||||
{
|
|
||||||
skillCaster.stopCasting(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
stopAllEffects();
|
stopAllEffects();
|
||||||
stopHpMpRegeneration();
|
stopHpMpRegeneration();
|
||||||
|
@ -26,7 +26,6 @@ import com.l2jmobius.gameserver.model.actor.templates.L2NpcTemplate;
|
|||||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import com.l2jmobius.gameserver.model.skills.SkillCaster;
|
|
||||||
import com.l2jmobius.gameserver.util.MinionList;
|
import com.l2jmobius.gameserver.util.MinionList;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -249,10 +248,7 @@ public class L2MonsterInstance extends L2Attackable
|
|||||||
// Might need some exceptions here, but it will prevent the monster buffing player bug.
|
// Might need some exceptions here, but it will prevent the monster buffing player bug.
|
||||||
if (!skill.isBad() && (getTarget() != null) && getTarget().isPlayer())
|
if (!skill.isBad() && (getTarget() != null) && getTarget().isPlayer())
|
||||||
{
|
{
|
||||||
for (SkillCaster skillCaster : getSkillCasters())
|
abortAllSkillCasters();
|
||||||
{
|
|
||||||
skillCaster.stopCasting(true);
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
super.doCast(skill, item, ctrlPressed, shiftPressed);
|
super.doCast(skill, item, ctrlPressed, shiftPressed);
|
||||||
|
@ -29,7 +29,6 @@ import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
|||||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||||
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
||||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import com.l2jmobius.gameserver.model.skills.SkillCaster;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Block Actions effect implementation.
|
* Block Actions effect implementation.
|
||||||
@ -63,10 +62,7 @@ public final class BlockActions extends AbstractEffect
|
|||||||
_allowedSkills.stream().forEach(effected::addBlockActionsAllowedSkill);
|
_allowedSkills.stream().forEach(effected::addBlockActionsAllowedSkill);
|
||||||
effected.startParalyze();
|
effected.startParalyze();
|
||||||
// Cancel running skill casters.
|
// Cancel running skill casters.
|
||||||
for (SkillCaster skillCaster : effected.getSkillCasters())
|
effected.abortAllSkillCasters();
|
||||||
{
|
|
||||||
skillCaster.stopCasting(true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -2836,6 +2836,21 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Abort the cast of all skills.
|
||||||
|
*/
|
||||||
|
public final void abortAllSkillCasters()
|
||||||
|
{
|
||||||
|
for (SkillCaster skillCaster : getSkillCasters())
|
||||||
|
{
|
||||||
|
skillCaster.stopCasting(true);
|
||||||
|
if (isPlayer())
|
||||||
|
{
|
||||||
|
getActingPlayer().setQueuedSkill(null, null, false, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Abort the cast of normal non-simultaneous skills.
|
* Abort the cast of normal non-simultaneous skills.
|
||||||
* @return {@code true} if a skill casting has been aborted, {@code false} otherwise.
|
* @return {@code true} if a skill casting has been aborted, {@code false} otherwise.
|
||||||
|
@ -425,10 +425,7 @@ public abstract class L2Summon extends L2Playable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Cancel running skill casters.
|
// Cancel running skill casters.
|
||||||
for (SkillCaster skillCaster : getSkillCasters())
|
abortAllSkillCasters();
|
||||||
{
|
|
||||||
skillCaster.stopCasting(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
stopAllEffects();
|
stopAllEffects();
|
||||||
stopHpMpRegeneration();
|
stopHpMpRegeneration();
|
||||||
|
@ -26,7 +26,6 @@ import com.l2jmobius.gameserver.model.actor.templates.L2NpcTemplate;
|
|||||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import com.l2jmobius.gameserver.model.skills.SkillCaster;
|
|
||||||
import com.l2jmobius.gameserver.util.MinionList;
|
import com.l2jmobius.gameserver.util.MinionList;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -249,10 +248,7 @@ public class L2MonsterInstance extends L2Attackable
|
|||||||
// Might need some exceptions here, but it will prevent the monster buffing player bug.
|
// Might need some exceptions here, but it will prevent the monster buffing player bug.
|
||||||
if (!skill.isBad() && (getTarget() != null) && getTarget().isPlayer())
|
if (!skill.isBad() && (getTarget() != null) && getTarget().isPlayer())
|
||||||
{
|
{
|
||||||
for (SkillCaster skillCaster : getSkillCasters())
|
abortAllSkillCasters();
|
||||||
{
|
|
||||||
skillCaster.stopCasting(true);
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
super.doCast(skill, item, ctrlPressed, shiftPressed);
|
super.doCast(skill, item, ctrlPressed, shiftPressed);
|
||||||
|
@ -29,7 +29,6 @@ import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
|||||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||||
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
||||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import com.l2jmobius.gameserver.model.skills.SkillCaster;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Block Actions effect implementation.
|
* Block Actions effect implementation.
|
||||||
@ -63,10 +62,7 @@ public final class BlockActions extends AbstractEffect
|
|||||||
_allowedSkills.stream().forEach(effected::addBlockActionsAllowedSkill);
|
_allowedSkills.stream().forEach(effected::addBlockActionsAllowedSkill);
|
||||||
effected.startParalyze();
|
effected.startParalyze();
|
||||||
// Cancel running skill casters.
|
// Cancel running skill casters.
|
||||||
for (SkillCaster skillCaster : effected.getSkillCasters())
|
effected.abortAllSkillCasters();
|
||||||
{
|
|
||||||
skillCaster.stopCasting(true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -2836,6 +2836,21 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Abort the cast of all skills.
|
||||||
|
*/
|
||||||
|
public final void abortAllSkillCasters()
|
||||||
|
{
|
||||||
|
for (SkillCaster skillCaster : getSkillCasters())
|
||||||
|
{
|
||||||
|
skillCaster.stopCasting(true);
|
||||||
|
if (isPlayer())
|
||||||
|
{
|
||||||
|
getActingPlayer().setQueuedSkill(null, null, false, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Abort the cast of normal non-simultaneous skills.
|
* Abort the cast of normal non-simultaneous skills.
|
||||||
* @return {@code true} if a skill casting has been aborted, {@code false} otherwise.
|
* @return {@code true} if a skill casting has been aborted, {@code false} otherwise.
|
||||||
|
@ -425,10 +425,7 @@ public abstract class L2Summon extends L2Playable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Cancel running skill casters.
|
// Cancel running skill casters.
|
||||||
for (SkillCaster skillCaster : getSkillCasters())
|
abortAllSkillCasters();
|
||||||
{
|
|
||||||
skillCaster.stopCasting(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
stopAllEffects();
|
stopAllEffects();
|
||||||
stopHpMpRegeneration();
|
stopHpMpRegeneration();
|
||||||
|
@ -26,7 +26,6 @@ import com.l2jmobius.gameserver.model.actor.templates.L2NpcTemplate;
|
|||||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import com.l2jmobius.gameserver.model.skills.SkillCaster;
|
|
||||||
import com.l2jmobius.gameserver.util.MinionList;
|
import com.l2jmobius.gameserver.util.MinionList;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -249,10 +248,7 @@ public class L2MonsterInstance extends L2Attackable
|
|||||||
// Might need some exceptions here, but it will prevent the monster buffing player bug.
|
// Might need some exceptions here, but it will prevent the monster buffing player bug.
|
||||||
if (!skill.isBad() && (getTarget() != null) && getTarget().isPlayer())
|
if (!skill.isBad() && (getTarget() != null) && getTarget().isPlayer())
|
||||||
{
|
{
|
||||||
for (SkillCaster skillCaster : getSkillCasters())
|
abortAllSkillCasters();
|
||||||
{
|
|
||||||
skillCaster.stopCasting(true);
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
super.doCast(skill, item, ctrlPressed, shiftPressed);
|
super.doCast(skill, item, ctrlPressed, shiftPressed);
|
||||||
|
@ -29,7 +29,6 @@ import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
|||||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||||
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
||||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import com.l2jmobius.gameserver.model.skills.SkillCaster;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Block Actions effect implementation.
|
* Block Actions effect implementation.
|
||||||
@ -63,10 +62,7 @@ public final class BlockActions extends AbstractEffect
|
|||||||
_allowedSkills.stream().forEach(effected::addBlockActionsAllowedSkill);
|
_allowedSkills.stream().forEach(effected::addBlockActionsAllowedSkill);
|
||||||
effected.startParalyze();
|
effected.startParalyze();
|
||||||
// Cancel running skill casters.
|
// Cancel running skill casters.
|
||||||
for (SkillCaster skillCaster : effected.getSkillCasters())
|
effected.abortAllSkillCasters();
|
||||||
{
|
|
||||||
skillCaster.stopCasting(true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -2836,6 +2836,21 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Abort the cast of all skills.
|
||||||
|
*/
|
||||||
|
public final void abortAllSkillCasters()
|
||||||
|
{
|
||||||
|
for (SkillCaster skillCaster : getSkillCasters())
|
||||||
|
{
|
||||||
|
skillCaster.stopCasting(true);
|
||||||
|
if (isPlayer())
|
||||||
|
{
|
||||||
|
getActingPlayer().setQueuedSkill(null, null, false, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Abort the cast of normal non-simultaneous skills.
|
* Abort the cast of normal non-simultaneous skills.
|
||||||
* @return {@code true} if a skill casting has been aborted, {@code false} otherwise.
|
* @return {@code true} if a skill casting has been aborted, {@code false} otherwise.
|
||||||
|
@ -425,10 +425,7 @@ public abstract class L2Summon extends L2Playable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Cancel running skill casters.
|
// Cancel running skill casters.
|
||||||
for (SkillCaster skillCaster : getSkillCasters())
|
abortAllSkillCasters();
|
||||||
{
|
|
||||||
skillCaster.stopCasting(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
stopAllEffects();
|
stopAllEffects();
|
||||||
stopHpMpRegeneration();
|
stopHpMpRegeneration();
|
||||||
|
@ -26,7 +26,6 @@ import com.l2jmobius.gameserver.model.actor.templates.L2NpcTemplate;
|
|||||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import com.l2jmobius.gameserver.model.skills.SkillCaster;
|
|
||||||
import com.l2jmobius.gameserver.util.MinionList;
|
import com.l2jmobius.gameserver.util.MinionList;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -249,10 +248,7 @@ public class L2MonsterInstance extends L2Attackable
|
|||||||
// Might need some exceptions here, but it will prevent the monster buffing player bug.
|
// Might need some exceptions here, but it will prevent the monster buffing player bug.
|
||||||
if (!skill.isBad() && (getTarget() != null) && getTarget().isPlayer())
|
if (!skill.isBad() && (getTarget() != null) && getTarget().isPlayer())
|
||||||
{
|
{
|
||||||
for (SkillCaster skillCaster : getSkillCasters())
|
abortAllSkillCasters();
|
||||||
{
|
|
||||||
skillCaster.stopCasting(true);
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
super.doCast(skill, item, ctrlPressed, shiftPressed);
|
super.doCast(skill, item, ctrlPressed, shiftPressed);
|
||||||
|
Loading…
Reference in New Issue
Block a user