Dispels should not effect raids.

This commit is contained in:
MobiusDevelopment
2025-01-09 01:49:27 +02:00
parent d0fa47b6c9
commit 3b6f202086
140 changed files with 280 additions and 105 deletions

View File

@@ -61,7 +61,7 @@ public class DispelByCategory extends AbstractEffect
@Override
public void instant(Creature effector, Creature effected, Skill skill, Item item)
{
if ((skill == null) || effected.isDead())
if ((skill == null) || effected.isDead() || effected.isRaid())
{
return;
}

View File

@@ -70,7 +70,7 @@ public class DispelBySlot extends AbstractEffect
@Override
public void instant(Creature effector, Creature effected, Skill skill, Item item)
{
if (_dispelAbnormals.isEmpty())
if (_dispelAbnormals.isEmpty() || (effected == null) || effected.isRaid())
{
return;
}

View File

@@ -63,7 +63,7 @@ public class DispelBySlotProbability extends AbstractEffect
@Override
public void instant(Creature effector, Creature effected, Skill skill, Item item)
{
if (effected == null)
if ((effected == null) || effected.isRaid())
{
return;
}

View File

@@ -53,6 +53,11 @@ public class TargetCancel extends AbstractEffect
@Override
public void instant(Creature effector, Creature effected, Skill skill, Item item)
{
if ((effected == null) || effected.isRaid())
{
return;
}
effected.setTarget(null);
effected.abortAttack();
effected.abortCast();