mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[8334] Small cleanup in magic shield back damage code.
Also misc variable use consistence in aura hander (no any affect expected).
This commit is contained in:
parent
a2b952b15e
commit
fe4b057dc2
3 changed files with 6 additions and 8 deletions
|
|
@ -4032,7 +4032,7 @@ void Aura::HandleModMechanicImmunity(bool apply, bool /*Real*/)
|
|||
|
||||
if(apply && GetSpellProto()->AttributesEx & SPELL_ATTR_EX_DISPEL_AURAS_ON_IMMUNITY)
|
||||
{
|
||||
uint32 mechanic = 1 << m_modifier.m_miscvalue;
|
||||
uint32 mechanic = 1 << misc;
|
||||
|
||||
//immune movement impairment and loss of control
|
||||
if(GetId()==42292 || GetId()==59752)
|
||||
|
|
|
|||
|
|
@ -1520,9 +1520,7 @@ void Unit::DealMeleeDamage(CalcDamageInfo *damageInfo, bool durabilityLoss)
|
|||
{
|
||||
alreadyDone.insert(*i);
|
||||
uint32 damage=(*i)->GetModifier()->m_amount;
|
||||
SpellEntry const *spellProto = sSpellStore.LookupEntry((*i)->GetId());
|
||||
if(!spellProto)
|
||||
continue;
|
||||
SpellEntry const *i_spellProto = (*i)->GetSpellProto();
|
||||
//Calculate absorb resist ??? no data in opcode for this possibly unable to absorb or resist?
|
||||
//uint32 absorb;
|
||||
//uint32 resist;
|
||||
|
|
@ -1534,13 +1532,13 @@ void Unit::DealMeleeDamage(CalcDamageInfo *damageInfo, bool durabilityLoss)
|
|||
WorldPacket data(SMSG_SPELLDAMAGESHIELD,(8+8+4+4+4+4));
|
||||
data << uint64(pVictim->GetGUID());
|
||||
data << uint64(GetGUID());
|
||||
data << uint32(spellProto->Id);
|
||||
data << uint32(i_spellProto->Id);
|
||||
data << uint32(damage); // Damage
|
||||
data << uint32(0); // Overkill
|
||||
data << uint32(spellProto->SchoolMask);
|
||||
data << uint32(i_spellProto->SchoolMask);
|
||||
pVictim->SendMessageToSet(&data, true );
|
||||
|
||||
pVictim->DealDamage(this, damage, 0, SPELL_DIRECT_DAMAGE, GetSpellSchoolMask(spellProto), spellProto, true);
|
||||
pVictim->DealDamage(this, damage, 0, SPELL_DIRECT_DAMAGE, GetSpellSchoolMask(i_spellProto), i_spellProto, true);
|
||||
|
||||
i = vDamageShields.begin();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "8333"
|
||||
#define REVISION_NR "8334"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue