Jump to content

[Fixed]Bug: Infinite Armor


Recommended Posts

Posted

MaNGOS: 10321

SD2: 1760

Unlimited armor is achievable via the following:

1. Use of Druid character

2. Talent Improved Barkskin

3. Click Travel Form

4. Leave Travel Form

5. Repeat 3 and 4

EDIT: The title was supposed to say [bUG] Infinite Armor.

Posted

void Aura::HandleAuraModBaseResistancePCT(bool apply, bool /*Real*/)
{
   // only players have base stats
   if(GetTarget()->GetTypeId() != TYPEID_PLAYER)
   {
       //pets only have base armor
       if(((Creature*)GetTarget())->isPet() && (m_modifier.m_miscvalue & SPELL_SCHOOL_MASK_NORMAL))
           GetTarget()->HandleStatModifier(UNIT_MOD_ARMOR, BASE_PCT, float(m_modifier.m_amount), apply);
   }
   else
   {
       for(int8 x = SPELL_SCHOOL_NORMAL; x < MAX_SPELL_SCHOOL;x++)
       {
           if(m_modifier.m_miscvalue & int32(1<<x))
               GetTarget()->HandleStatModifier(UnitMods(UNIT_MOD_RESISTANCE_START + x), BASE_PCT, float(m_modifier.m_amount), apply);
       }
   }
}

Something wrong here?

Maybe with float(m_modifier.m_amount)?

Posted

Should be fixed in [10345], at least i am not able to gain unlimited armor anymore on any shapeshift combination, and it also works in caster form now, as it should.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use