mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-05 03:53:48 +00:00
fix(Scripts/Misc): Replace some AddItem/CreateItem with spells (#9006)
Co-authored-by: offl <11556157+offl@users.noreply.github.com>
This commit is contained in:
@@ -169,6 +169,7 @@ enum Spells
|
||||
SPELL_ON_ORGRIMS_HAMMER_DECK = 70121,
|
||||
|
||||
// Rocket Pack
|
||||
SPELL_CREATE_ROCKET_PACK = 70055,
|
||||
SPELL_ROCKET_PACK_DAMAGE = 69193,
|
||||
SPELL_ROCKET_BURST = 69192,
|
||||
SPELL_ROCKET_PACK_USEABLE = 70348,
|
||||
@@ -1423,7 +1424,7 @@ public:
|
||||
|
||||
void sGossipSelect(Player* player, uint32 /*sender*/, uint32 /*action*/) override
|
||||
{
|
||||
player->AddItem(ITEM_GOBLIN_ROCKET_PACK, 1);
|
||||
me->CastSpell(player, SPELL_CREATE_ROCKET_PACK);
|
||||
player->PlayerTalkClass->SendCloseGossip();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user