Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Scripts/Pit of Saron: Geist Ambusher should only jump once, on enteri…

…ng combat
  • Loading branch information...
commit cb30a067569053cff9b7b665629a487333f0be44 1 parent b06bb9e
@Shauren Shauren authored
View
5 src/server/scripts/Northrend/FrozenHalls/PitOfSaron/pit_of_saron.cpp
@@ -240,12 +240,13 @@ class mob_geist_ambusher : public CreatureScript
_leapingFaceMaulCooldown = 9000;
}
- void MoveInLineOfSight(Unit* who)
+ void EnterCombat(Unit* who)
{
if (who->GetTypeId() != TYPEID_PLAYER)
return;
- if (me->IsWithinDistInMap(who, 30.0f))
+ // the max range is determined by aggro range
+ if (me->GetDistance(who) > 5.0f)
DoCast(who, SPELL_LEAPING_FACE_MAUL);
}
Please sign in to comment.
Something went wrong with that request. Please try again.