Esempio n. 1
0
        public override bool Handles(string tokenName, Creature player, CastedSpell castedSpell)
        {
            if (player is Character)
            {
                if (Handles <Character>(tokenName, false))                 // No prefix for active character's properties.
                {
                    return(true);
                }
            }
            else if (player is Creature)
            {
                if (Handles <Creature>(tokenName, false))                 // No prefix for active character's properties.
                {
                    return(true);
                }
            }
            else
            {
                return(false);
            }

            return(player.HasState(tokenName) || tokenName.StartsWith("_"));
        }