From bb13ac113f20150bd20ea6efcd84db7048169980 Mon Sep 17 00:00:00 2001 From: xavier Date: Sun, 20 Jan 2013 02:17:31 +0000 Subject: [PATCH] bola mount fix. --- Scripts/Items/Misc/Bola.cs | 2 +- Scripts/Mobiles/Animals/Mounts/BaseMount.cs | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Scripts/Items/Misc/Bola.cs b/Scripts/Items/Misc/Bola.cs index f1a817855..d690ce5cb 100644 --- a/Scripts/Items/Misc/Bola.cs +++ b/Scripts/Items/Misc/Bola.cs @@ -132,7 +132,7 @@ namespace Server.Items ( ( Mobile )state ).EndAction( typeof( Bola ) ); } - private class BolaTarget : Target + public class BolaTarget : Target { private Bola m_Bola; diff --git a/Scripts/Mobiles/Animals/Mounts/BaseMount.cs b/Scripts/Mobiles/Animals/Mounts/BaseMount.cs index b0ab98764..b68bdc69a 100644 --- a/Scripts/Mobiles/Animals/Mounts/BaseMount.cs +++ b/Scripts/Mobiles/Animals/Mounts/BaseMount.cs @@ -1,6 +1,8 @@ using System; using System.Collections; using Server; +using Server.Items; +using Server.Targeting; namespace Server.Mobiles { @@ -258,6 +260,11 @@ namespace Server.Mobiles Internalize(); } + if( m_Rider.Target is BolaTarget ) + { + m_Rider.Target.Cancel( TargetCancelType.Canceled ); + } + m_Rider = value; } }