103 {
106 return;
108
109 float dist = player->
GetDistance(3385, -1807, 114);
110 if (dist < 40.0f)
111 {
114 return;
115 }
116
118 if (dist < 40.0f)
119 {
121 return;
122 }
123
125 if (dist < 40.0f)
126 {
129 return;
130 }
131
133 if (dist < 40.0f)
134 {
136 return;
137 }
138
140 if (dist < 40.0f)
141 {
143 return;
144 }
145 }
@ QUEST_SUBJECT_TO_INTERPRETATION
Definition: spell_quest.cpp:92
@ QUEST_MY_HEART_IS_IN_YOUR_HANDS
Definition: spell_quest.cpp:93
Player * ToPlayer()
Definition: Object.h:195
float GetDistance(WorldObject const *obj) const
Definition: Object.cpp:1245
Definition: Player.h:1046
void GroupEventHappens(uint32 questId, WorldObject const *pEventObject)
Definition: PlayerQuest.cpp:1802
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:1169
Unit * GetCaster()
Definition: SpellScript.cpp:401