Line 6478 in Game Player Changed Group for Shieldswipe to the following
previous version did not hit players. Did not appear to hit anything. Had limitations. Only limits should be in range and can attack for shieldswipe.
- Code: Select all
else // shield swipe
{
foreach (GameNPC npc in GetNPCsInRadius(false, (ushort)AttackRange))
{
if (GameServer.ServerRules.IsAllowedToAttack(this, npc, true))
{
listAvailableTargets.Add(npc);
}
}
foreach (GamePlayer pl in GetPlayersInRadius(false, (ushort)AttackRange))
{
if (pl == null) continue;
if (GameServer.ServerRules.IsAllowedToAttack(this, pl, true))
{
listAvailableTargets.Add(pl);
}
}
if (listAvailableTargets.Contains(target) == true)
{
listAvailableTargets.Remove(target);
}
foreach (GameLiving obj in listAvailableTargets)
{
this.MakeAttack(obj, attackWeapon, null, 1, ServerProperties.Properties.SPELL_INTERRUPT_DURATION, false, false);
}
}