Prohibit casting of spells while disabled.
This commit is contained in:
parent
e26f4f39eb
commit
4ac95b0be1
@ -526,6 +526,12 @@ public class SkillCaster implements Runnable
|
||||
// Launch the magic skill in order to calculate its effects
|
||||
try
|
||||
{
|
||||
// Mobius: Disabled characters should not be able to finish bad skills.
|
||||
if (caster.isAttackingDisabled() && skill.isBad())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Check if the toggle skill effects are already in progress on the L2Character
|
||||
if (skill.isToggle() && caster.isAffectedBySkill(skill.getId()))
|
||||
{
|
||||
|
@ -526,6 +526,12 @@ public class SkillCaster implements Runnable
|
||||
// Launch the magic skill in order to calculate its effects
|
||||
try
|
||||
{
|
||||
// Mobius: Disabled characters should not be able to finish bad skills.
|
||||
if (caster.isAttackingDisabled() && skill.isBad())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Check if the toggle skill effects are already in progress on the L2Character
|
||||
if (skill.isToggle() && caster.isAffectedBySkill(skill.getId()))
|
||||
{
|
||||
|
@ -526,6 +526,12 @@ public class SkillCaster implements Runnable
|
||||
// Launch the magic skill in order to calculate its effects
|
||||
try
|
||||
{
|
||||
// Mobius: Disabled characters should not be able to finish bad skills.
|
||||
if (caster.isAttackingDisabled() && skill.isBad())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Check if the toggle skill effects are already in progress on the L2Character
|
||||
if (skill.isToggle() && caster.isAffectedBySkill(skill.getId()))
|
||||
{
|
||||
|
@ -526,6 +526,12 @@ public class SkillCaster implements Runnable
|
||||
// Launch the magic skill in order to calculate its effects
|
||||
try
|
||||
{
|
||||
// Mobius: Disabled characters should not be able to finish bad skills.
|
||||
if (caster.isAttackingDisabled() && skill.isBad())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Check if the toggle skill effects are already in progress on the L2Character
|
||||
if (skill.isToggle() && caster.isAffectedBySkill(skill.getId()))
|
||||
{
|
||||
|
@ -526,6 +526,12 @@ public class SkillCaster implements Runnable
|
||||
// Launch the magic skill in order to calculate its effects
|
||||
try
|
||||
{
|
||||
// Mobius: Disabled characters should not be able to finish bad skills.
|
||||
if (caster.isAttackingDisabled() && skill.isBad())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Check if the toggle skill effects are already in progress on the L2Character
|
||||
if (skill.isToggle() && caster.isAffectedBySkill(skill.getId()))
|
||||
{
|
||||
|
@ -526,6 +526,12 @@ public class SkillCaster implements Runnable
|
||||
// Launch the magic skill in order to calculate its effects
|
||||
try
|
||||
{
|
||||
// Mobius: Disabled characters should not be able to finish bad skills.
|
||||
if (caster.isAttackingDisabled() && skill.isBad())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Check if the toggle skill effects are already in progress on the L2Character
|
||||
if (skill.isToggle() && caster.isAffectedBySkill(skill.getId()))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user