protected virtual int EndCast(RegionTimer timer) { bool castWasSuccess = player.TempProperties.getProperty(NM_CAST_SUCCESS, false); player.TempProperties.removeProperty(IS_CASTING); GameEventMgr.RemoveHandler(player, GamePlayerEvent.Moving, new DOLEventHandler(CastInterrupted)); GameEventMgr.RemoveHandler(player, GamePlayerEvent.AttackFinished, new DOLEventHandler(CastInterrupted)); GameEventMgr.RemoveHandler(player, GamePlayerEvent.Dying, new DOLEventHandler(CastInterrupted)); if (player.IsMezzed || player.IsStunned || player.IsSitting) return 0; if (!castWasSuccess) return 0; Statics.NegativeMaelstromBase nm = new Statics.NegativeMaelstromBase(dmgValue); nm.CreateStatic(player, player.GroundTarget, duration, 5, 350); DisableSkill(player); timer.Stop(); timer = null; return 0; }
protected virtual int EndCast(RegionTimer timer) { bool castWasSuccess = player.TempProperties.getProperty(NM_CAST_SUCCESS, false); player.TempProperties.removeProperty(IS_CASTING); GameEventMgr.RemoveHandler(player, GamePlayerEvent.Moving, new DOLEventHandler(CastInterrupted)); GameEventMgr.RemoveHandler(player, GamePlayerEvent.AttackFinished, new DOLEventHandler(CastInterrupted)); GameEventMgr.RemoveHandler(player, GamePlayerEvent.Dying, new DOLEventHandler(CastInterrupted)); if (player.IsMezzed || player.IsStunned || player.IsSitting) { return(0); } if (!castWasSuccess) { return(0); } Statics.NegativeMaelstromBase nm = new Statics.NegativeMaelstromBase(dmgValue); nm.CreateStatic(player, player.GroundTarget.Value, duration, 5, 350); DisableSkill(player); timer.Stop(); timer = null; return(0); }
protected virtual int EndCast(RegionTimer timer) { bool castWasSuccess = _player.TempProperties.getProperty(NmCastSuccess, false); _player.TempProperties.removeProperty(IsCasting); GameEventMgr.RemoveHandler(_player, GameLivingEvent.Moving, new DOLEventHandler(CastInterrupted)); GameEventMgr.RemoveHandler(_player, GameLivingEvent.AttackFinished, new DOLEventHandler(CastInterrupted)); GameEventMgr.RemoveHandler(_player, GameLivingEvent.Dying, new DOLEventHandler(CastInterrupted)); if (_player.IsMezzed || _player.IsStunned || _player.IsSitting) { return(0); } if (!castWasSuccess) { return(0); } Statics.NegativeMaelstromBase nm = new Statics.NegativeMaelstromBase(_dmgValue); nm.CreateStatic(_player, _player.GroundTarget, _duration, 5, 350); DisableSkill(_player); timer.Stop(); return(0); }