Fixed chicken rocket.
This commit is contained in:
parent
4e433665cc
commit
720e965d08
@ -2,6 +2,7 @@ package nautilus.game.arcade.game.games.smash.perks.chicken;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import org.bukkit.Color;
|
||||
@ -35,6 +36,8 @@ import mineplex.core.common.util.UtilTime;
|
||||
import mineplex.core.recharge.Recharge;
|
||||
import mineplex.core.updater.UpdateType;
|
||||
import mineplex.core.updater.event.UpdateEvent;
|
||||
|
||||
import nautilus.game.arcade.game.games.smash.TeamSuperSmash;
|
||||
import nautilus.game.arcade.game.games.smash.perks.SmashPerk;
|
||||
import nautilus.game.arcade.kit.perks.data.ChickenMissileData;
|
||||
|
||||
@ -141,6 +144,7 @@ public class PerkChickenRocket extends SmashPerk
|
||||
}
|
||||
else
|
||||
{
|
||||
List<Player> team = TeamSuperSmash.getTeam(Manager, data.Player, true);
|
||||
// Hit Entity
|
||||
for (Entity ent : UtilEnt.getInRadius(data.Chicken.getLocation(), HIT_BOX_RADIUS).keySet())
|
||||
{
|
||||
@ -164,7 +168,7 @@ public class PerkChickenRocket extends SmashPerk
|
||||
continue;
|
||||
}
|
||||
|
||||
if(Manager.GetGame().GetTeam(data.Player).GetPlayers(true).contains(ent))
|
||||
if(team.contains(ent))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user