Exemplo n.º 1
0
        public void Untransform(TransformationDefinition definition)
        {
            for (int i = ActiveTransformations.Count - 1; i >= 0; i--)
            {
                TransformationDefinition transformation = ActiveTransformations[i];

                if (transformation == definition)
                {
                    ActiveTransformations.Remove(transformation);
                    player.ClearBuff(mod.GetBuff(definition.BuffType.Name).Type);
                }
            }
        }
Exemplo n.º 2
0
        public void Untransform(TransformationDefinition definition)
        {
            for (int i = ActiveTransformations.Count - 1; i >= 0; i--)
            {
                TransformationDefinition transformation = ActiveTransformations[i];

                if (transformation == definition)
                {
                    ActiveTransformations.Remove(transformation);

                    if (player.whoAmI == Main.myPlayer)
                    {
                        new PlayerUntransformedPacket(transformation).Send();
                    }

                    player.ClearBuff(mod.GetBuff(definition.BuffType.Name).Type);
                }
            }
        }