Example #1
0
        public override void Apply()
        {
            ContextActorLook newLook = FightLookProvider.TransformLook(Target, Target.RealLook.Clone(), SpellId);

            base.Target.ChangeLook(newLook, Source);
            base.Apply();
        }
Example #2
0
 public override bool Apply(Fighter[] targets)
 {
     if (FightLookProvider.Exist(SpellId))
     {
         foreach (var target in targets)
         {
             base.AddLookBuff(target, FightDispellableEnum.REALLY_NOT_DISPELLABLE);
         }
     }
     return(true);
 }
Example #3
0
        public override void SetBuff()
        {
            ContextActorLook look = FightLookProvider.GetLook(Fighter, (ushort)SourceSpellId);

            if (look != null)
            {
                Fighter.Fight.Send(new GameActionFightChangeLookMessage((ushort)ActionsEnum.ACTION_CHARACTER_CHANGE_LOOK, Fighter.ContextualId,
                                                                        Fighter.ContextualId, look.ToEntityLook()));
                Fighter.FighterLook = look;
                this.AppliedLook    = look;
            }
            else
            {
                Fighter.Fight.Reply("No look associated to this spell...");
            }
        }