mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[10570] Store spell entry of triggering spell on triggered, original patch provided by insider42
This commit is contained in:
parent
ead698e881
commit
a67b6a1da5
5 changed files with 44 additions and 27 deletions
|
|
@ -319,7 +319,7 @@ void SpellCastTargets::write( ByteBuffer& data ) const
|
|||
data << m_strTarget;
|
||||
}
|
||||
|
||||
Spell::Spell( Unit* caster, SpellEntry const *info, bool triggered, ObjectGuid originalCasterGUID, Spell** triggeringContainer )
|
||||
Spell::Spell( Unit* caster, SpellEntry const *info, bool triggered, ObjectGuid originalCasterGUID, Spell** triggeringContainer, SpellEntry const* triggeredBy )
|
||||
{
|
||||
MANGOS_ASSERT( caster != NULL && info != NULL );
|
||||
MANGOS_ASSERT( info == sSpellStore.LookupEntry( info->Id ) && "`info` must be pointer to sSpellStore element");
|
||||
|
|
@ -334,6 +334,7 @@ Spell::Spell( Unit* caster, SpellEntry const *info, bool triggered, ObjectGuid o
|
|||
else
|
||||
m_spellInfo = info;
|
||||
|
||||
m_triggeredBySpellInfo = triggeredBy;
|
||||
m_caster = caster;
|
||||
m_selfContainer = NULL;
|
||||
m_triggeringContainer = triggeringContainer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue