mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[10363] More wide use ObjectGuid in way remove MAKE_NEW_GUID uses.
Also * Fixed some amount wrong uses low guids as full player guids. * Add private without body ObjectGuid(uint32 const&) for catch wrong assigns low guids to ObjectGuid. In some cases need assign "0" guid, then use ObjectGuid() instead. * Fixed .pdump commands work.
This commit is contained in:
parent
db7db6382a
commit
5f44c4da21
41 changed files with 369 additions and 323 deletions
|
|
@ -1293,7 +1293,7 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
|
|||
if (const SpellEntry *pSpell = sSpellStore.LookupEntry(46022))
|
||||
{
|
||||
m_caster->CastSpell(unitTarget, pSpell, true);
|
||||
((Player*)m_caster)->KilledMonsterCredit(pSpell->EffectMiscValue[EFFECT_INDEX_0], 0);
|
||||
((Player*)m_caster)->KilledMonsterCredit(pSpell->EffectMiscValue[EFFECT_INDEX_0]);
|
||||
}
|
||||
|
||||
if (unitTarget->GetTypeId() == TYPEID_UNIT)
|
||||
|
|
@ -1369,7 +1369,7 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
|
|||
m_caster->CastSpell(unitTarget, pSpell, true);
|
||||
|
||||
if (const SpellEntry *pSpellCredit = sSpellStore.LookupEntry(pSpell->EffectMiscValue[EFFECT_INDEX_0]))
|
||||
((Player*)m_caster)->KilledMonsterCredit(pSpellCredit->EffectMiscValue[EFFECT_INDEX_0], 0);
|
||||
((Player*)m_caster)->KilledMonsterCredit(pSpellCredit->EffectMiscValue[EFFECT_INDEX_0]);
|
||||
|
||||
((Creature*)unitTarget)->ForcedDespawn();
|
||||
}
|
||||
|
|
@ -6733,7 +6733,7 @@ void Spell::EffectStuck(SpellEffectIndex /*eff_idx*/)
|
|||
SpellEntry const *spellInfo = sSpellStore.LookupEntry(8690);
|
||||
if(!spellInfo)
|
||||
return;
|
||||
Spell spell(pTarget, spellInfo, true, 0);
|
||||
Spell spell(pTarget, spellInfo, true);
|
||||
spell.SendSpellCooldown();
|
||||
}
|
||||
|
||||
|
|
@ -7830,7 +7830,7 @@ void Spell::EffectKillCreditPersonal(SpellEffectIndex eff_idx)
|
|||
if(!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
|
||||
return;
|
||||
|
||||
((Player*)unitTarget)->KilledMonsterCredit(m_spellInfo->EffectMiscValue[eff_idx], 0);
|
||||
((Player*)unitTarget)->KilledMonsterCredit(m_spellInfo->EffectMiscValue[eff_idx]);
|
||||
}
|
||||
|
||||
void Spell::EffectKillCredit(SpellEffectIndex eff_idx)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue