KnockBack and PullBack effects should ignore town NPCs.
This commit is contained in:
		@@ -102,7 +102,8 @@ public final class KnockBack extends AbstractEffect
 | 
			
		||||
	
 | 
			
		||||
	private void knockBack(Creature effector, Creature effected)
 | 
			
		||||
	{
 | 
			
		||||
		if ((effected == null) || effected.isRaid())
 | 
			
		||||
		// Prevent knocking back raids and town NPCs.
 | 
			
		||||
		if ((effected == null) || effected.isRaid() || (effected.isNpc() && !effected.isAttackable()))
 | 
			
		||||
		{
 | 
			
		||||
			return;
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
@@ -61,14 +61,8 @@ public final class PullBack extends AbstractEffect
 | 
			
		||||
	@Override
 | 
			
		||||
	public void instant(Creature effector, Creature effected, Skill skill, ItemInstance item)
 | 
			
		||||
	{
 | 
			
		||||
		// Prevent pulling raids.
 | 
			
		||||
		if ((effected == null) || effected.isRaid())
 | 
			
		||||
		{
 | 
			
		||||
			return;
 | 
			
		||||
		}
 | 
			
		||||
		
 | 
			
		||||
		// Prevent pulling NPCs.
 | 
			
		||||
		if (!effected.isPlayable() && !effected.isMonster())
 | 
			
		||||
		// Prevent pulling raids and town NPCs.
 | 
			
		||||
		if ((effected == null) || effected.isRaid() || (effected.isNpc() && !effected.isAttackable()))
 | 
			
		||||
		{
 | 
			
		||||
			return;
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user