Example #1
0
        bool OnUse(Player* player, Item* item, SpellCastTargets const& targets) override
        {
            if (player->GetMapId() == 725 || player->GetMapId() == 573)
            {
                ChatHandler(player->GetSession()).SendSysMessage("You may not spawn an APT in this zone.");
                return false;
            }
            itemGuid = item->GetGUIDLow();
            entryId = item->GetEntry();
            summonPos = targets.GetDstPos();
            player->CastSpell(player, 29173, true);

            return true;
        }