Merge pull request #7753 from Faq/ScrollOfRecall
Core/Spells: Scroll of Recall
This commit is contained in:
@@ -0,0 +1,15 @@
|
|||||||
|
DELETE FROM `spell_target_position` WHERE `id` IN (60323,60324,60325,60326,60327,60328,60329,60330,60331,60332,60333,60334,60335);
|
||||||
|
INSERT INTO `spell_target_position` (`id`, `target_map`, `target_position_x`, `target_position_y`, `target_position_z`, `target_orientation`) VALUES
|
||||||
|
(60323,0,-5506.339,-704.348,392.686,0.595), -- Steelgrills Depot
|
||||||
|
(60324,0,-9470.760,3.909,49.794,4.802), -- Lions Pride Inn, Goldshire
|
||||||
|
(60325,1,-3721.306,-4411.906,25.247,0.831), -- Theramore isle, Dustwallow Marsh
|
||||||
|
(60326,0,286.314,-2184.086,122.612,2.271), -- Aerie Peak, The Hinterlands
|
||||||
|
(60327,1,6395.708,433.256,33.260,0.566), -- Auberdine, Darkshore
|
||||||
|
(60328,0,-14412.923,692.017,22.248,1.231), -- Boote Bay
|
||||||
|
(60329,1,-7135.717,-3787.769,8.799,5.992), -- Tanaris, Gadgetzan
|
||||||
|
(60330,0,-10336.138,-2934.057,116.723,4.523), -- Swamp of Sorrows, Z coord is intended
|
||||||
|
(60331,0,-10446.900,-3261.909,20.179,5.875), -- Stonard, Swamp of Sorrows
|
||||||
|
(60332,0,-103.988,-902.795,55.534,5.924), -- Tarren Mill, Hillsbrad Foothils
|
||||||
|
(60333,0,1804.836,196.322,70.399,1.572), -- Undercity
|
||||||
|
(60334,1,-1060.266,23.137,141.455,5.967), -- Thunder Bluff
|
||||||
|
(60335,1,-506.224,-2590.084,113.150,2.445); -- Barrens, The Crossroads
|
||||||
@@ -1153,6 +1153,14 @@ void Spell::EffectTeleportUnits(SpellEffIndex /*effIndex*/)
|
|||||||
if (unitTarget->getLevel() > uiMaxSafeLevel)
|
if (unitTarget->getLevel() > uiMaxSafeLevel)
|
||||||
{
|
{
|
||||||
unitTarget->AddAura(60444, unitTarget); //Apply Lost! Aura
|
unitTarget->AddAura(60444, unitTarget); //Apply Lost! Aura
|
||||||
|
|
||||||
|
// ALLIANCE from 60323 to 60330 - HORDE from 60328 to 60335
|
||||||
|
uint32 spellId = 60323;
|
||||||
|
if (m_caster->ToPlayer()->GetTeam() == HORDE)
|
||||||
|
spellId += 5;
|
||||||
|
|
||||||
|
spellId += urand(0, 7);
|
||||||
|
m_caster->CastSpell(m_caster, spellId, true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user