Commented SkillCaster checkUseConditions event AoE check.

Thanks to Drusker.
This commit is contained in:
MobiusDevelopment 2024-10-01 08:52:37 +03:00
parent a9e8d98373
commit 6d7197bdb4
29 changed files with 261 additions and 232 deletions

View File

@ -1192,14 +1192,15 @@ public class SkillCaster implements Runnable
return false;
}
if (skill.isBad() && !player.isOnSoloEvent())
{
final WorldObject target = player.getTarget();
if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
{
return false;
}
}
// Commented because AOE skills like Warlord's [Thunder Storm] (44) and debuffs like Overlord's [Seal of Binding] (1208) do not work when targeting an enemy from the other team.
// if (skill.isBad() && !player.isOnSoloEvent())
// {
// final WorldObject target = player.getTarget();
// if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
// {
// return false;
// }
// }
}
}
return true;

View File

@ -1192,14 +1192,15 @@ public class SkillCaster implements Runnable
return false;
}
if (skill.isBad() && !player.isOnSoloEvent())
{
final WorldObject target = player.getTarget();
if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
{
return false;
}
}
// Commented because AOE skills like Warlord's [Thunder Storm] (44) and debuffs like Overlord's [Seal of Binding] (1208) do not work when targeting an enemy from the other team.
// if (skill.isBad() && !player.isOnSoloEvent())
// {
// final WorldObject target = player.getTarget();
// if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
// {
// return false;
// }
// }
}
}
return true;

View File

@ -1192,14 +1192,15 @@ public class SkillCaster implements Runnable
return false;
}
if (skill.isBad() && !player.isOnSoloEvent())
{
final WorldObject target = player.getTarget();
if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
{
return false;
}
}
// Commented because AOE skills like Warlord's [Thunder Storm] (44) and debuffs like Overlord's [Seal of Binding] (1208) do not work when targeting an enemy from the other team.
// if (skill.isBad() && !player.isOnSoloEvent())
// {
// final WorldObject target = player.getTarget();
// if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
// {
// return false;
// }
// }
}
}
return true;

View File

@ -1192,14 +1192,15 @@ public class SkillCaster implements Runnable
return false;
}
if (skill.isBad() && !player.isOnSoloEvent())
{
final WorldObject target = player.getTarget();
if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
{
return false;
}
}
// Commented because AOE skills like Warlord's [Thunder Storm] (44) and debuffs like Overlord's [Seal of Binding] (1208) do not work when targeting an enemy from the other team.
// if (skill.isBad() && !player.isOnSoloEvent())
// {
// final WorldObject target = player.getTarget();
// if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
// {
// return false;
// }
// }
}
}
return true;

View File

@ -1192,14 +1192,15 @@ public class SkillCaster implements Runnable
return false;
}
if (skill.isBad() && !player.isOnSoloEvent())
{
final WorldObject target = player.getTarget();
if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
{
return false;
}
}
// Commented because AOE skills like Warlord's [Thunder Storm] (44) and debuffs like Overlord's [Seal of Binding] (1208) do not work when targeting an enemy from the other team.
// if (skill.isBad() && !player.isOnSoloEvent())
// {
// final WorldObject target = player.getTarget();
// if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
// {
// return false;
// }
// }
}
}
return true;

View File

@ -1192,14 +1192,15 @@ public class SkillCaster implements Runnable
return false;
}
if (skill.isBad() && !player.isOnSoloEvent())
{
final WorldObject target = player.getTarget();
if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
{
return false;
}
}
// Commented because AOE skills like Warlord's [Thunder Storm] (44) and debuffs like Overlord's [Seal of Binding] (1208) do not work when targeting an enemy from the other team.
// if (skill.isBad() && !player.isOnSoloEvent())
// {
// final WorldObject target = player.getTarget();
// if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
// {
// return false;
// }
// }
}
}
return true;

View File

@ -1192,14 +1192,15 @@ public class SkillCaster implements Runnable
return false;
}
if (skill.isBad() && !player.isOnSoloEvent())
{
final WorldObject target = player.getTarget();
if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
{
return false;
}
}
// Commented because AOE skills like Warlord's [Thunder Storm] (44) and debuffs like Overlord's [Seal of Binding] (1208) do not work when targeting an enemy from the other team.
// if (skill.isBad() && !player.isOnSoloEvent())
// {
// final WorldObject target = player.getTarget();
// if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
// {
// return false;
// }
// }
}
}
return true;

View File

@ -1192,14 +1192,15 @@ public class SkillCaster implements Runnable
return false;
}
if (skill.isBad() && !player.isOnSoloEvent())
{
final WorldObject target = player.getTarget();
if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
{
return false;
}
}
// Commented because AOE skills like Warlord's [Thunder Storm] (44) and debuffs like Overlord's [Seal of Binding] (1208) do not work when targeting an enemy from the other team.
// if (skill.isBad() && !player.isOnSoloEvent())
// {
// final WorldObject target = player.getTarget();
// if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
// {
// return false;
// }
// }
}
}
return true;

View File

@ -1194,14 +1194,15 @@ public class SkillCaster implements Runnable
return false;
}
if (skill.isBad() && !player.isOnSoloEvent())
{
final WorldObject target = player.getTarget();
if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
{
return false;
}
}
// Commented because AOE skills like Warlord's [Thunder Storm] (44) and debuffs like Overlord's [Seal of Binding] (1208) do not work when targeting an enemy from the other team.
// if (skill.isBad() && !player.isOnSoloEvent())
// {
// final WorldObject target = player.getTarget();
// if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
// {
// return false;
// }
// }
}
}
return true;

View File

@ -1226,14 +1226,15 @@ public class SkillCaster implements Runnable
return false;
}
if (skill.isBad() && !player.isOnSoloEvent())
{
final WorldObject target = player.getTarget();
if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
{
return false;
}
}
// Commented because AOE skills like Warlord's [Thunder Storm] (44) and debuffs like Overlord's [Seal of Binding] (1208) do not work when targeting an enemy from the other team.
// if (skill.isBad() && !player.isOnSoloEvent())
// {
// final WorldObject target = player.getTarget();
// if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
// {
// return false;
// }
// }
}
}
return true;

View File

@ -1226,14 +1226,15 @@ public class SkillCaster implements Runnable
return false;
}
if (skill.isBad() && !player.isOnSoloEvent())
{
final WorldObject target = player.getTarget();
if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
{
return false;
}
}
// Commented because AOE skills like Warlord's [Thunder Storm] (44) and debuffs like Overlord's [Seal of Binding] (1208) do not work when targeting an enemy from the other team.
// if (skill.isBad() && !player.isOnSoloEvent())
// {
// final WorldObject target = player.getTarget();
// if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
// {
// return false;
// }
// }
}
}
return true;

View File

@ -1226,14 +1226,15 @@ public class SkillCaster implements Runnable
return false;
}
if (skill.isBad() && !player.isOnSoloEvent())
{
final WorldObject target = player.getTarget();
if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
{
return false;
}
}
// Commented because AOE skills like Warlord's [Thunder Storm] (44) and debuffs like Overlord's [Seal of Binding] (1208) do not work when targeting an enemy from the other team.
// if (skill.isBad() && !player.isOnSoloEvent())
// {
// final WorldObject target = player.getTarget();
// if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
// {
// return false;
// }
// }
}
}
return true;

View File

@ -1226,14 +1226,15 @@ public class SkillCaster implements Runnable
return false;
}
if (skill.isBad() && !player.isOnSoloEvent())
{
final WorldObject target = player.getTarget();
if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
{
return false;
}
}
// Commented because AOE skills like Warlord's [Thunder Storm] (44) and debuffs like Overlord's [Seal of Binding] (1208) do not work when targeting an enemy from the other team.
// if (skill.isBad() && !player.isOnSoloEvent())
// {
// final WorldObject target = player.getTarget();
// if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
// {
// return false;
// }
// }
}
}
return true;

View File

@ -1192,14 +1192,15 @@ public class SkillCaster implements Runnable
return false;
}
if (skill.isBad() && !player.isOnSoloEvent())
{
final WorldObject target = player.getTarget();
if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
{
return false;
}
}
// Commented because AOE skills like Warlord's [Thunder Storm] (44) and debuffs like Overlord's [Seal of Binding] (1208) do not work when targeting an enemy from the other team.
// if (skill.isBad() && !player.isOnSoloEvent())
// {
// final WorldObject target = player.getTarget();
// if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
// {
// return false;
// }
// }
}
}
return true;

View File

@ -1192,14 +1192,15 @@ public class SkillCaster implements Runnable
return false;
}
if (skill.isBad() && !player.isOnSoloEvent())
{
final WorldObject target = player.getTarget();
if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
{
return false;
}
}
// Commented because AOE skills like Warlord's [Thunder Storm] (44) and debuffs like Overlord's [Seal of Binding] (1208) do not work when targeting an enemy from the other team.
// if (skill.isBad() && !player.isOnSoloEvent())
// {
// final WorldObject target = player.getTarget();
// if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
// {
// return false;
// }
// }
}
}
return true;

View File

@ -1192,14 +1192,15 @@ public class SkillCaster implements Runnable
return false;
}
if (skill.isBad() && !player.isOnSoloEvent())
{
final WorldObject target = player.getTarget();
if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
{
return false;
}
}
// Commented because AOE skills like Warlord's [Thunder Storm] (44) and debuffs like Overlord's [Seal of Binding] (1208) do not work when targeting an enemy from the other team.
// if (skill.isBad() && !player.isOnSoloEvent())
// {
// final WorldObject target = player.getTarget();
// if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
// {
// return false;
// }
// }
}
}
return true;

View File

@ -1192,14 +1192,15 @@ public class SkillCaster implements Runnable
return false;
}
if (skill.isBad() && !player.isOnSoloEvent())
{
final WorldObject target = player.getTarget();
if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
{
return false;
}
}
// Commented because AOE skills like Warlord's [Thunder Storm] (44) and debuffs like Overlord's [Seal of Binding] (1208) do not work when targeting an enemy from the other team.
// if (skill.isBad() && !player.isOnSoloEvent())
// {
// final WorldObject target = player.getTarget();
// if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
// {
// return false;
// }
// }
}
}
return true;

View File

@ -1192,14 +1192,15 @@ public class SkillCaster implements Runnable
return false;
}
if (skill.isBad() && !player.isOnSoloEvent())
{
final WorldObject target = player.getTarget();
if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
{
return false;
}
}
// Commented because AOE skills like Warlord's [Thunder Storm] (44) and debuffs like Overlord's [Seal of Binding] (1208) do not work when targeting an enemy from the other team.
// if (skill.isBad() && !player.isOnSoloEvent())
// {
// final WorldObject target = player.getTarget();
// if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
// {
// return false;
// }
// }
}
}
return true;

View File

@ -1192,14 +1192,15 @@ public class SkillCaster implements Runnable
return false;
}
if (skill.isBad() && !player.isOnSoloEvent())
{
final WorldObject target = player.getTarget();
if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
{
return false;
}
}
// Commented because AOE skills like Warlord's [Thunder Storm] (44) and debuffs like Overlord's [Seal of Binding] (1208) do not work when targeting an enemy from the other team.
// if (skill.isBad() && !player.isOnSoloEvent())
// {
// final WorldObject target = player.getTarget();
// if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
// {
// return false;
// }
// }
}
}
return true;

View File

@ -1192,14 +1192,15 @@ public class SkillCaster implements Runnable
return false;
}
if (skill.isBad() && !player.isOnSoloEvent())
{
final WorldObject target = player.getTarget();
if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
{
return false;
}
}
// Commented because AOE skills like Warlord's [Thunder Storm] (44) and debuffs like Overlord's [Seal of Binding] (1208) do not work when targeting an enemy from the other team.
// if (skill.isBad() && !player.isOnSoloEvent())
// {
// final WorldObject target = player.getTarget();
// if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
// {
// return false;
// }
// }
}
}
return true;

View File

@ -1192,14 +1192,15 @@ public class SkillCaster implements Runnable
return false;
}
if (skill.isBad() && !player.isOnSoloEvent())
{
final WorldObject target = player.getTarget();
if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
{
return false;
}
}
// Commented because AOE skills like Warlord's [Thunder Storm] (44) and debuffs like Overlord's [Seal of Binding] (1208) do not work when targeting an enemy from the other team.
// if (skill.isBad() && !player.isOnSoloEvent())
// {
// final WorldObject target = player.getTarget();
// if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
// {
// return false;
// }
// }
}
}
return true;

View File

@ -1197,14 +1197,15 @@ public class SkillCaster implements Runnable
return false;
}
if (skill.isBad() && !player.isOnSoloEvent())
{
final WorldObject target = player.getTarget();
if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
{
return false;
}
}
// Commented because AOE skills like Warlord's [Thunder Storm] (44) and debuffs like Overlord's [Seal of Binding] (1208) do not work when targeting an enemy from the other team.
// if (skill.isBad() && !player.isOnSoloEvent())
// {
// final WorldObject target = player.getTarget();
// if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
// {
// return false;
// }
// }
}
}
return true;

View File

@ -1192,14 +1192,15 @@ public class SkillCaster implements Runnable
return false;
}
if (skill.isBad() && !player.isOnSoloEvent())
{
final WorldObject target = player.getTarget();
if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
{
return false;
}
}
// Commented because AOE skills like Warlord's [Thunder Storm] (44) and debuffs like Overlord's [Seal of Binding] (1208) do not work when targeting an enemy from the other team.
// if (skill.isBad() && !player.isOnSoloEvent())
// {
// final WorldObject target = player.getTarget();
// if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
// {
// return false;
// }
// }
}
}
return true;

View File

@ -1199,14 +1199,15 @@ public class SkillCaster implements Runnable
return false;
}
if (skill.isBad() && !player.isOnSoloEvent())
{
final WorldObject target = player.getTarget();
if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
{
return false;
}
}
// Commented because AOE skills like Warlord's [Thunder Storm] (44) and debuffs like Overlord's [Seal of Binding] (1208) do not work when targeting an enemy from the other team.
// if (skill.isBad() && !player.isOnSoloEvent())
// {
// final WorldObject target = player.getTarget();
// if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
// {
// return false;
// }
// }
}
}
return true;

View File

@ -1237,14 +1237,15 @@ public class SkillCaster implements Runnable
return false;
}
if (skill.isBad() && !player.isOnSoloEvent())
{
final WorldObject target = player.getTarget();
if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
{
return false;
}
}
// Commented because AOE skills like Warlord's [Thunder Storm] (44) and debuffs like Overlord's [Seal of Binding] (1208) do not work when targeting an enemy from the other team.
// if (skill.isBad() && !player.isOnSoloEvent())
// {
// final WorldObject target = player.getTarget();
// if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
// {
// return false;
// }
// }
}
}
return true;

View File

@ -1264,14 +1264,15 @@ public class SkillCaster implements Runnable
return false;
}
if (skill.isBad() && !player.isOnSoloEvent())
{
final WorldObject target = player.getTarget();
if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
{
return false;
}
}
// Commented because AOE skills like Warlord's [Thunder Storm] (44) and debuffs like Overlord's [Seal of Binding] (1208) do not work when targeting an enemy from the other team.
// if (skill.isBad() && !player.isOnSoloEvent())
// {
// final WorldObject target = player.getTarget();
// if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
// {
// return false;
// }
// }
}
}
return true;

View File

@ -1264,14 +1264,15 @@ public class SkillCaster implements Runnable
return false;
}
if (skill.isBad() && !player.isOnSoloEvent())
{
final WorldObject target = player.getTarget();
if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
{
return false;
}
}
// Commented because AOE skills like Warlord's [Thunder Storm] (44) and debuffs like Overlord's [Seal of Binding] (1208) do not work when targeting an enemy from the other team.
// if (skill.isBad() && !player.isOnSoloEvent())
// {
// final WorldObject target = player.getTarget();
// if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
// {
// return false;
// }
// }
}
}
return true;

View File

@ -1264,14 +1264,15 @@ public class SkillCaster implements Runnable
return false;
}
if (skill.isBad() && !player.isOnSoloEvent())
{
final WorldObject target = player.getTarget();
if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
{
return false;
}
}
// Commented because AOE skills like Warlord's [Thunder Storm] (44) and debuffs like Overlord's [Seal of Binding] (1208) do not work when targeting an enemy from the other team.
// if (skill.isBad() && !player.isOnSoloEvent())
// {
// final WorldObject target = player.getTarget();
// if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
// {
// return false;
// }
// }
}
}
return true;

View File

@ -1264,14 +1264,15 @@ public class SkillCaster implements Runnable
return false;
}
if (skill.isBad() && !player.isOnSoloEvent())
{
final WorldObject target = player.getTarget();
if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
{
return false;
}
}
// Commented because AOE skills like Warlord's [Thunder Storm] (44) and debuffs like Overlord's [Seal of Binding] (1208) do not work when targeting an enemy from the other team.
// if (skill.isBad() && !player.isOnSoloEvent())
// {
// final WorldObject target = player.getTarget();
// if ((target != null) && target.isPlayable() && (player.getTeam() == target.getActingPlayer().getTeam()))
// {
// return false;
// }
// }
}
}
return true;