Don't set team mates on fire on direct fireball hit

This commit is contained in:
xGamingDudex 2016-10-22 10:48:09 +02:00
parent 1ae89adfb0
commit d2be1fc646

View File

@ -213,6 +213,14 @@ public class PerkMagmaBlast extends Perk
} }
Player player = event.GetDamageePlayer(); Player player = event.GetDamageePlayer();
if(proj.getShooter() instanceof Player)
{
Player shooter = (Player) proj.getShooter();
if(TeamSuperSmash.getTeam(Manager, shooter, true).contains(player))
{
return;
}
}
if (UtilMath.offset(player, proj) < FIRE_RADIUS) if (UtilMath.offset(player, proj) < FIRE_RADIUS)
{ {