Core/SpellScripts: Added method to access m_spellValue in script
This commit is contained in:
@@ -477,6 +477,11 @@ void SpellScript::SetCustomCastResultMessage(SpellCustomErrors result)
|
|||||||
m_spell->m_customError = result;
|
m_spell->m_customError = result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SpellValue const* SpellScript::GetSpellValue()
|
||||||
|
{
|
||||||
|
return m_spell->m_spellValue;
|
||||||
|
}
|
||||||
|
|
||||||
bool AuraScript::_Validate(SpellInfo const* entry)
|
bool AuraScript::_Validate(SpellInfo const* entry)
|
||||||
{
|
{
|
||||||
for (std::list<CheckAreaTargetHandler>::iterator itr = DoCheckAreaTarget.begin(); itr != DoCheckAreaTarget.end(); ++itr)
|
for (std::list<CheckAreaTargetHandler>::iterator itr = DoCheckAreaTarget.begin(); itr != DoCheckAreaTarget.end(); ++itr)
|
||||||
|
|||||||
@@ -256,6 +256,7 @@ class SpellScript : public _SpellScript
|
|||||||
Unit* GetCaster();
|
Unit* GetCaster();
|
||||||
Unit* GetOriginalCaster();
|
Unit* GetOriginalCaster();
|
||||||
SpellInfo const* GetSpellInfo();
|
SpellInfo const* GetSpellInfo();
|
||||||
|
SpellValue const* GetSpellValue();
|
||||||
|
|
||||||
// methods useable after spell targets are set
|
// methods useable after spell targets are set
|
||||||
// accessors to the "focus" targets of the spell
|
// accessors to the "focus" targets of the spell
|
||||||
|
|||||||
Reference in New Issue
Block a user