mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 00:18:43 +01:00
Core/Spells: fix crash with wintergrasp water spell script.
This commit is contained in:
@@ -2601,7 +2601,7 @@ class spell_gen_wg_water : public SpellScriptLoader
|
||||
|
||||
SpellCastResult CheckCast()
|
||||
{
|
||||
if (!GetSpellInfo()->CheckTargetCreatureType(GetTargetUnit()))
|
||||
if (!GetSpellInfo()->CheckTargetCreatureType(GetCaster()))
|
||||
return SPELL_FAILED_DONT_REPORT;
|
||||
return SPELL_CAST_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user