Exemple #1
0
    public static Potion Factory(string hero)
    {
        Potion potion = Potion.Factory();

        GameManager.instance.findHero(hero).heroInventory.AddItem(potion);
        return(potion);
    }
Exemple #2
0
    public static Potion Factory(int cellID)
    {
        Potion potion = Potion.Factory();

        potion.Cell = Cell.FromId(cellID);
        return(potion);
    }
    public override void ApplyEffect()
    {
        Witch.Instance.Cell = Cell.FromId(Cell.Index);
        GameManager.instance.narrator.TriggerWitchCard();

        if (GameManager.instance.CurrentPlayer != GameManager.instance.MainHero)
        {
            return;
        }
        Token potion = Potion.Factory();

        GameManager.instance.CurrentPlayer.Cell.Inventory.AddItem(potion);
        //GameManager.instance.CurrentPlayer.heroInventory.AddItem(potion);
    }