diff options
| author | Shauren <none@none> | 2010-12-03 13:54:00 +0100 |
|---|---|---|
| committer | Shauren <none@none> | 2010-12-03 13:54:00 +0100 |
| commit | 3badf69b636c99fea24b92514b329aa3901acd8c (patch) | |
| tree | f9d0c84dba2720eb1595462321a260ba44ba73bd /src/server/scripts/World | |
| parent | bd4b47af0e1e63ecf4c2cde2a3422b190d8c5921 (diff) | |
Core/Spells: Fixed bad Z coordinate for Spell::EffectBind with location stored in database
Core/Scripts: Corrected few mistakes in misc scripts
--HG--
branch : trunk
Diffstat (limited to 'src/server/scripts/World')
| -rw-r--r-- | src/server/scripts/World/item_scripts.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/server/scripts/World/item_scripts.cpp b/src/server/scripts/World/item_scripts.cpp index a9a4972a339..7acd7ebab97 100644 --- a/src/server/scripts/World/item_scripts.cpp +++ b/src/server/scripts/World/item_scripts.cpp @@ -127,15 +127,14 @@ class item_nether_wraith_beacon : public ItemScript public: item_nether_wraith_beacon() : ItemScript("item_nether_wraith_beacon") { } - bool OnUse(Player* pPlayer, Item* /*pItem*/, SpellCastTargets const& /*targets*/) + bool OnUse(Player* player, Item* /*item*/, SpellCastTargets const& /*targets*/) { - if (pPlayer->GetQuestStatus(10832) == QUEST_STATUS_INCOMPLETE) + if (player->GetQuestStatus(10832) == QUEST_STATUS_INCOMPLETE) { - Creature *Nether; - Nether = pPlayer->SummonCreature(22408, pPlayer->GetPositionX(), pPlayer->GetPositionY()+20, pPlayer->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN, 180000); - Nether = pPlayer->SummonCreature(22408, pPlayer->GetPositionX(), pPlayer->GetPositionY()-20, pPlayer->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN, 180000); - if (Nether) - Nether->AI()->AttackStart(pPlayer); + if (Creature *nether = player->SummonCreature(22408, pPlayer->GetPositionX(), pPlayer->GetPositionY()+20, pPlayer->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN, 180000)) + nether->AI()->AttackStart(player); + if (Creature *nether = player->SummonCreature(22408, pPlayer->GetPositionX(), pPlayer->GetPositionY()-20, pPlayer->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN, 180000)) + nether->AI()->AttackStart(player); } return false; } |
