Skip to content

Commit 48de7b4

Browse files
authored
Fix spell cast hook not returning SPELL_CAST_OK
1 parent 0ab2263 commit 48de7b4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

hooks/SpellHooks.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ bool Eluna::OnAuraProc(Aura* aura, ProcEventInfo& procInfo)
137137

138138
uint32 Eluna::OnCheckCast(Spell* pSpell)
139139
{
140-
START_HOOK_WITH_RETVAL(SPELL_EVENT_ON_CHECK_CAST, pSpell, SPELL_FAILED_SUCCESS);
140+
START_HOOK_WITH_RETVAL(SPELL_EVENT_ON_CHECK_CAST, pSpell, SPELL_CAST_OK);
141141
HookPush(pSpell);
142-
return static_cast<uint32>(CallAllFunctionsInt(binding, key, int32(SPELL_FAILED_SUCCESS)));
142+
return static_cast<uint32>(CallAllFunctionsInt(binding, key, int32(SPELL_CAST_OK)));
143143
}
144144

145145
void Eluna::OnBeforeCast(Spell* pSpell)

0 commit comments

Comments
 (0)