Core/Players: Fixed finding trainer id from gossip menus (#28648)

This commit is contained in:
fluxurion
2023-01-01 22:37:55 +01:00
committed by GitHub
parent 634c03890f
commit bd33d61a61

View File

@@ -13895,7 +13895,7 @@ void Player::OnGossipSelect(WorldObject* source, int32 gossipOptionId, uint32 me
GetSession()->SendTaxiMenu(source->ToCreature());
break;
case GossipOptionNpc::Trainer:
GetSession()->SendTrainerList(source->ToCreature(), sObjectMgr->GetCreatureTrainerForGossipOption(source->GetEntry(), menuId, gossipOptionId));
GetSession()->SendTrainerList(source->ToCreature(), sObjectMgr->GetCreatureTrainerForGossipOption(source->GetEntry(), menuId, item->OrderIndex));
break;
case GossipOptionNpc::SpiritHealer:
source->CastSpell(source->ToCreature(), 17251, CastSpellExtraArgs(TRIGGERED_FULL_MASK).SetOriginalCaster(GetGUID()));