102 {
105 return;
107
108 float dist = player->
GetDistance(3385, -1807, 114);
109 if (dist < 40.0f)
110 {
113 return;
114 }
115
117 if (dist < 40.0f)
118 {
120 return;
121 }
122
124 if (dist < 40.0f)
125 {
128 return;
129 }
130
132 if (dist < 40.0f)
133 {
135 return;
136 }
137
139 if (dist < 40.0f)
140 {
142 return;
143 }
144 }
@ QUEST_SUBJECT_TO_INTERPRETATION
Definition: spell_quest.cpp:91
@ QUEST_MY_HEART_IS_IN_YOUR_HANDS
Definition: spell_quest.cpp:92
Player * ToPlayer()
Definition: Object.h:201
float GetDistance(WorldObject const *obj) const
Definition: Object.cpp:1256
Definition: Player.h:1081
void GroupEventHappens(uint32 questId, WorldObject const *pEventObject)
Definition: PlayerQuest.cpp:1817
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:1167
Unit * GetCaster()
Definition: SpellScript.cpp:401