Fixes fishing bobbers not being usable

This commit is contained in:
hondacrx
2017-07-05 12:09:47 -04:00
parent 595d43de16
commit 4cd1efe35c
2 changed files with 6 additions and 2 deletions
+2 -1
View File
@@ -291,7 +291,8 @@ namespace Game.Entities
SetGoAnimProgress(animprogress); SetGoAnimProgress(animprogress);
break; break;
case GameObjectTypes.FishingNode: case GameObjectTypes.FishingNode:
SetGoAnimProgress(0); SetUInt32Value(GameObjectFields.Level, 1);
SetGoAnimProgress(255);
break; break;
case GameObjectTypes.Trap: case GameObjectTypes.Trap:
if (goinfo.Trap.stealthed != 0) if (goinfo.Trap.stealthed != 0)
+4 -1
View File
@@ -4655,7 +4655,10 @@ namespace Game.Spells
{ {
case GameObjectTypes.FishingNode: case GameObjectTypes.FishingNode:
{ {
m_caster.AddChannelObject(pGameObj.GetGUID()); pGameObj.SetFaction(m_caster.getFaction());
ObjectGuid bobberGuid = pGameObj.GetGUID();
// client requires fishing bobber guid in channel object slot 0 to be usable
m_caster.SetDynamicStructuredValue(UnitDynamicFields.ChannelObjects, 0, bobberGuid);
m_caster.AddGameObject(pGameObj); // will removed at spell cancel m_caster.AddGameObject(pGameObj); // will removed at spell cancel
// end time of range when possible catch fish (FISHING_BOBBER_READY_TIME..GetDuration(m_spellInfo)) // end time of range when possible catch fish (FISHING_BOBBER_READY_TIME..GetDuration(m_spellInfo))