Fixes fishing bobbers not being usable
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user