Fix multiple summon of Omen (Lunar Festival)
This commit is contained in:
1 parent
b4b43d03b3
commit
8130de1b9a
1 file changed
+1
-1
@@ -2192,7 +2192,7 @@ public:
|
||||
// Check if we are near Elune'ara lake south, if so try to summon Omen or a minion
|
||||
if (me->GetZoneId() == ZONE_MOONGLADE)
|
||||
{
|
||||
if (!me->FindNearestCreature(NPC_OMEN, 100.0f, false) && me->GetDistance2d(omenSummonPos.GetPositionX(), omenSummonPos.GetPositionY()) <= 100.0f)
|
||||
if (!me->FindNearestCreature(NPC_OMEN, 100.0f) && me->GetDistance2d(omenSummonPos.GetPositionX(), omenSummonPos.GetPositionY()) <= 100.0f)
|
||||
{
|
||||
switch (urand(0, 9))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user