Scripts/Spells: Modified range for targeting script for Map of the Geyser Fields by Shauren

This commit is contained in:
ZxBiohazardZx
2011-03-08 00:03:04 +01:00
parent e4c0a80336
commit 95a7b253a6
+3 -3
View File
@@ -941,9 +941,9 @@ class spell_item_map_of_the_geyser_fields : public SpellScriptLoader
SpellCastResult CheckSinkholes()
{
Unit* caster = GetCaster();
if (caster->FindNearestCreature(NPC_SOUTH_SIKNHOLE, 5.0f, true) ||
caster->FindNearestCreature(NPC_NORTHEAST_SIKNHOLE, 5.0f, true) ||
caster->FindNearestCreature(NPC_NORTHWEST_SIKNHOLE, 5.0f, true))
if (caster->FindNearestCreature(NPC_SOUTH_SIKNHOLE, 30.0f, true) ||
caster->FindNearestCreature(NPC_NORTHEAST_SIKNHOLE, 30.0f, true) ||
caster->FindNearestCreature(NPC_NORTHWEST_SIKNHOLE, 30.0f, true))
return SPELL_CAST_OK;
SetCustomCastResultMessage(SPELL_CUSTOM_ERROR_MUST_BE_CLOSE_TO_SINKHOLE);