Esempio n. 1
0
        protected override void Apply()
        {
            if (Owner.IsInfluenced)
            {
                return;
            }
            if (Owner is Character)
            {
                Character owner = (Character)Owner;
                owner.SetMover(Owner, false);
                owner.SpeedFactor *= 0.5f;
                Asda2MovmentHandler.OnMoveRequest(owner.Client, owner.Asda2Y + Utility.Random(-10, 10),
                                                  owner.Asda2X + Utility.Random(-10, 10));
            }
            else if (Owner is NPC)
            {
                m_aura.Auras.Owner.Brain.State = BrainState.Fear;
            }

            Owner.IsInfluenced = true;
        }
Esempio n. 2
0
 private static void OnCharacterProvoked(Character chr, Unit caster)
 {
     chr.IsAggred        = true;
     chr.ArggredDateTime = DateTime.Now.AddMilliseconds(2500.0);
     Asda2MovmentHandler.OnMoveRequest(chr.Client, caster.Asda2Y, caster.Asda2X);
 }