Sheep code cleanup
This commit is contained in:
parent
0f1cea013c
commit
b89e3c4abc
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user