Fix Daze Potion doing insane damage
This commit is contained in:
parent
e09f7fcb5d
commit
8ec7d92290
@ -155,8 +155,7 @@ public class PerkWitchPotion extends SmashPerk implements IThrown
|
|||||||
{
|
{
|
||||||
Player thrower = (Player) data.getThrower();
|
Player thrower = (Player) data.getThrower();
|
||||||
|
|
||||||
List<Player> players = new ArrayList<>();
|
List<Player> players = new ArrayList<>(Manager.GetGame().GetPlayers(true));
|
||||||
players.addAll(Manager.GetGame().GetPlayers(true));
|
|
||||||
players.removeAll(TeamSuperSmash.getTeam(Manager, thrower, true));
|
players.removeAll(TeamSuperSmash.getTeam(Manager, thrower, true));
|
||||||
|
|
||||||
List<Player> directHit = UtilEnt.getPlayersInsideEntity(data.getThrown(), players);
|
List<Player> directHit = UtilEnt.getPlayersInsideEntity(data.getThrown(), players);
|
||||||
@ -164,7 +163,7 @@ public class PerkWitchPotion extends SmashPerk implements IThrown
|
|||||||
for (Player player : directHit)
|
for (Player player : directHit)
|
||||||
{
|
{
|
||||||
Manager.GetDamage().NewDamageEvent(player, thrower, null, DamageCause.CUSTOM, _damageDirect, true, true, false, thrower.getName(), GetName());
|
Manager.GetDamage().NewDamageEvent(player, thrower, null, DamageCause.CUSTOM, _damageDirect, true, true, false, thrower.getName(), GetName());
|
||||||
Manager.GetCondition().Factory().Slow(GetName(), target, thrower, 2, 1, true, true, false, false);
|
Manager.GetCondition().Factory().Slow(GetName(), player, thrower, 2, 1, true, true, false, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
players.removeAll(directHit);
|
players.removeAll(directHit);
|
||||||
@ -176,7 +175,7 @@ public class PerkWitchPotion extends SmashPerk implements IThrown
|
|||||||
if(!UtilEnt.isInsideBoundingBox(player, a, b)) continue;
|
if(!UtilEnt.isInsideBoundingBox(player, a, b)) continue;
|
||||||
|
|
||||||
Manager.GetDamage().NewDamageEvent(player, thrower, null, DamageCause.CUSTOM, _damageDistance, true, true, false, thrower.getName(), GetName());
|
Manager.GetDamage().NewDamageEvent(player, thrower, null, DamageCause.CUSTOM, _damageDistance, true, true, false, thrower.getName(), GetName());
|
||||||
Manager.GetCondition().Factory().Slow(GetName(), target, thrower, 2, 0, true, true, false, false);
|
Manager.GetCondition().Factory().Slow(GetName(), player, thrower, 2, 0, true, true, false, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user