private void DeathEffect(Unit killer, Field field) { killer.KeywordManager.GrantKeyword <Poisoned>(); // Animation BuffAnimation buffAnimation = (BuffAnimation)GetAnimation <BuffAnimation>().Copy(); buffAnimation?.Init(killer); buffAnimation?.Register(); }
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(); }