diff options
| author | Shauren <shauren.trinity@gmail.com> | 2011-03-04 21:18:38 +0100 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2011-03-04 21:19:43 +0100 |
| commit | 7120f1eff80c9f057a40831a10d8975c0a8a7439 (patch) | |
| tree | e77c66ff87570d1484b2cf81be6920ad5cd5e7fd /src/server/game/Spells/SpellEffects.cpp | |
| parent | a9582964d3ca140a1ec1d5894b79e72ed15a65a6 (diff) | |
Core/Spells:
* Implemented on CheckCast spell script hook
* Added possibility to send SPELL_FAILED_CUSTOM_ERROR and added enum with all possible options for it
Scripts/Spells:
* Added example script for CheckCast hook with SPELL_FAILED_CUSTOM_ERROR (profession research and Book of Glyph Mastery)
Diffstat (limited to 'src/server/game/Spells/SpellEffects.cpp')
| -rwxr-xr-x | src/server/game/Spells/SpellEffects.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp index d2709c1d4d1..984895b85db 100755 --- a/src/server/game/Spells/SpellEffects.cpp +++ b/src/server/game/Spells/SpellEffects.cpp @@ -5126,7 +5126,7 @@ void Spell::EffectScriptEffect(SpellEffIndex effIndex) return; // learn random explicit discovery recipe (if any) - if (uint32 discoveredSpell = GetExplicitDiscoverySpell(m_spellInfo->Id, (Player*)m_caster)) + if (uint32 discoveredSpell = GetExplicitDiscoverySpell(m_spellInfo->Id, m_caster->ToPlayer())) m_caster->ToPlayer()->learnSpell(discoveredSpell, false); return; } |
