Beispiel #1
0
        protected override bool InternalApply()
        {
            var integerEffect = Effect.GenerateEffect(EffectGenerationContext.Item) as EffectInteger;

            if (integerEffect == null)
            {
                return(false);
            }

            if (Target.HasEmote((EmotesEnum)integerEffect.Value))
            {
                return(false);
            }

            UsedItems = 1;

            Target.AddEmote((EmotesEnum)integerEffect.Value);

            return(true);
        }
Beispiel #2
0
        protected override bool InternalApply()
        {
            var integerEffect = Effect.GenerateEffect(EffectGenerationContext.Item) as EffectInteger;

            if (integerEffect == null)
            {
                return(false);
            }

            if (Operation == HandlerOperation.APPLY)
            {
                Target.AddEmote((EmotesEnum)integerEffect.Value);
            }
            else
            {
                Target.RemoveEmote((EmotesEnum)integerEffect.Value);
            }

            return(true);
        }