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:
Kitzunu
2021-11-20 13:59:52 +01:00
committed by GitHub
parent efe999309a
commit 6a430cd2f9
6 changed files with 157 additions and 114 deletions

View File

@@ -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();
}
};