Skip to content

Commit

Permalink
-Auto craft fix: Bots no longer talk about crafting an item on an obj…
Browse files Browse the repository at this point in the history
…ect when the object wasn't needed to craft it (ie. an anvil)
  • Loading branch information
mostlikely4r committed Sep 4, 2024
1 parent 6e1b65e commit 7c0b1a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions playerbot/strategy/actions/CastCustomSpellAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,10 @@ bool CraftRandomItemAction::Execute(Event& event)
if (GuidPosition(wot).GetGameObjectInfo()->spellFocus.focusId != pSpellInfo->RequiresSpellFocus)
continue;
}
else
{
wot = nullptr;
}

uint32 newItemId = pSpellInfo->EffectItemType[0];

Expand Down

0 comments on commit 7c0b1a4

Please sign in to comment.