Sheep code cleanup

This commit is contained in:
Sam 2017-05-01 14:10:08 +01:00
parent 0f1cea013c
commit b89e3c4abc
1 changed files with 2 additions and 5 deletions

View File

@ -262,13 +262,10 @@ public class PerkWoolBomb extends Perk implements IThrown
List<Player> team = TeamSuperSmash.getTeam(Manager, player, false); List<Player> team = TeamSuperSmash.getTeam(Manager, player, false);
for (LivingEntity cur : targets.keySet()) for (LivingEntity cur : targets.keySet())
{ {
if(cur instanceof Player) if (cur instanceof Player && team.contains(cur))
{
if(team.contains(cur))
{ {
continue; continue;
} }
}
// Damage Event // Damage Event
Manager.GetDamage().NewDamageEvent(cur, player, null, DamageCause.CUSTOM, _damageExplode * targets.get(cur) + 0.5, false, true, false, player.getName(), GetName()); Manager.GetDamage().NewDamageEvent(cur, player, null, DamageCause.CUSTOM, _damageExplode * targets.get(cur) + 0.5, false, true, false, player.getName(), GetName());