Exemplo n.º 1
0
    private void DeathEffect(Unit killer, Field field)
    {
        killer.KeywordManager.GrantKeyword <Poisoned>();

        // Animation
        BuffAnimation buffAnimation = (BuffAnimation)GetAnimation <BuffAnimation>().Copy();

        buffAnimation?.Init(killer);
        buffAnimation?.Register();
    }
Exemplo n.º 2
0
    public void Support(Move move)
    {
        Unit other = move.GetEnd().unit;

        other.hasHaste = true;
        other.KeywordManager.RevokeKeyword <Poisoned>();

        // Animation
        SupportAnimation supportAnimation = (SupportAnimation)GetAnimation <SupportAnimation>().Copy();

        supportAnimation?.Init(this, other);
        supportAnimation?.Register();

        BuffAnimation buffAnimation = (BuffAnimation)GetAnimation <BuffAnimation>().Copy();

        buffAnimation?.Init(other);
        buffAnimation?.Register();
    }