Reset monster casting back to false.

Contributed by Sahar.
This commit is contained in:
MobiusDev
2018-05-08 14:09:19 +00:00
parent 374fb0c808
commit e05d0a1a14
7 changed files with 8 additions and 0 deletions

View File

@@ -247,6 +247,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())
{ {
abortCast();
return; return;
} }
super.doCast(skill, item, ctrlPressed, shiftPressed); super.doCast(skill, item, ctrlPressed, shiftPressed);

View File

@@ -247,6 +247,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())
{ {
abortCast();
return; return;
} }
super.doCast(skill, item, ctrlPressed, shiftPressed); super.doCast(skill, item, ctrlPressed, shiftPressed);

View File

@@ -247,6 +247,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())
{ {
abortCast();
return; return;
} }
super.doCast(skill, item, ctrlPressed, shiftPressed); super.doCast(skill, item, ctrlPressed, shiftPressed);

View File

@@ -247,6 +247,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())
{ {
abortCast();
return; return;
} }
super.doCast(skill, item, ctrlPressed, shiftPressed); super.doCast(skill, item, ctrlPressed, shiftPressed);

View File

@@ -241,6 +241,8 @@ 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())
{ {
setIsCastingNow(false);
setIsCastingSimultaneouslyNow(false);
return; return;
} }
super.doCast(skill, target, targets); super.doCast(skill, target, targets);

View File

@@ -247,6 +247,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())
{ {
abortCast();
return; return;
} }
super.doCast(skill, item, ctrlPressed, shiftPressed); super.doCast(skill, item, ctrlPressed, shiftPressed);

View File

@@ -247,6 +247,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())
{ {
abortCast();
return; return;
} }
super.doCast(skill, item, ctrlPressed, shiftPressed); super.doCast(skill, item, ctrlPressed, shiftPressed);