Beispiel #1
0
    public void OnManaSpent(ManaSpentEvent manaSpentEvent)
    {
        if (manaSpentEvent.Player == Player)
        {
            Character randomTarget = RNG.RandomCharacter(Player.Enemy.GetAllCharacters());

            randomTarget.Damage(null, 1);
        }
    }
Beispiel #2
0
    public void OnManaSpent(Player player, int manaAmount)
    {
        ManaSpentEvent manaSpentEvent = new ManaSpentEvent()
        {
            Player     = player,
            ManaAmount = manaAmount
        };

        ManaSpentHandler.OnNext(manaSpentEvent);

        foreach (Minion battlefieldMinion in GameManager.Instance.GetAllMinions())
        {
            battlefieldMinion.Buffs.OnManaSpent.OnNext(manaSpentEvent);
        }
    }