private void PoisonPlayer(object sender, PlayerMoveEventArgs args) { if (poisonedPlayers == null) { poisonedPlayers = new PoisonedPlayers(this); poisonedPlayers.Initialize(SittingDuck, ThreatController, EventMaster); ThreatController.AddInternalThreat(poisonedPlayers, TimeAppears, Position); } poisonedPlayers.PoisonPlayer(args.MovingPlayer); }
public override void CheckForDestroyed() { if (RemainingHealth <= 0) { if (PoisonedPlayers.Any()) { OnDestroyed(); } else { ActionType = PlayerAction.None; } } }