Reset monster casting back to false.
Contributed by Sahar.
This commit is contained in:
@@ -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);
|
||||||
|
@@ -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);
|
||||||
|
@@ -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);
|
||||||
|
@@ -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);
|
||||||
|
@@ -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);
|
||||||
|
@@ -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);
|
||||||
|
@@ -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);
|
||||||
|
Reference in New Issue
Block a user