Scripts/Spells: Modified range for targeting script for Map of the Geyser Fields by Shauren
This commit is contained in:
@@ -941,9 +941,9 @@ class spell_item_map_of_the_geyser_fields : public SpellScriptLoader
|
|||||||
SpellCastResult CheckSinkholes()
|
SpellCastResult CheckSinkholes()
|
||||||
{
|
{
|
||||||
Unit* caster = GetCaster();
|
Unit* caster = GetCaster();
|
||||||
if (caster->FindNearestCreature(NPC_SOUTH_SIKNHOLE, 5.0f, true) ||
|
if (caster->FindNearestCreature(NPC_SOUTH_SIKNHOLE, 30.0f, true) ||
|
||||||
caster->FindNearestCreature(NPC_NORTHEAST_SIKNHOLE, 5.0f, true) ||
|
caster->FindNearestCreature(NPC_NORTHEAST_SIKNHOLE, 30.0f, true) ||
|
||||||
caster->FindNearestCreature(NPC_NORTHWEST_SIKNHOLE, 5.0f, true))
|
caster->FindNearestCreature(NPC_NORTHWEST_SIKNHOLE, 30.0f, true))
|
||||||
return SPELL_CAST_OK;
|
return SPELL_CAST_OK;
|
||||||
|
|
||||||
SetCustomCastResultMessage(SPELL_CUSTOM_ERROR_MUST_BE_CLOSE_TO_SINKHOLE);
|
SetCustomCastResultMessage(SPELL_CUSTOM_ERROR_MUST_BE_CLOSE_TO_SINKHOLE);
|
||||||
|
|||||||
Reference in New Issue
Block a user