Don't set team mates on fire on direct fireball hit
This commit is contained in:
parent
1ae89adfb0
commit
d2be1fc646
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user