Dispels should not effect raids.
This commit is contained in:
		| @@ -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; | ||||
| 		} | ||||
|   | ||||
| @@ -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; | ||||
| 		} | ||||
|   | ||||
| @@ -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; | ||||
| 		} | ||||
|   | ||||
| @@ -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(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 MobiusDevelopment
					MobiusDevelopment