mangosR2 / scriptdev2

MangosR2 universal Script Library, compartible with all mangosR2 cores (v2, 3, 4 and possible later).
http://mangosr2.2x2forum.com/
GNU General Public License v2.0
82 stars 47 forks source link

ICC - Valithria Dreamwalker #171

Open Undergarun opened 11 years ago

Undergarun commented 11 years ago
  1. Encounter ends at 95% of hp. Should ends at 100%.
  2. After wipe, adds are not despawned. Players should disband and press saves reset button. After that rebuild raid and adds are despawned.
  3. Blistering Zombie absorb too much damage when hp is near 0.
ghost commented 11 years ago

Blistering Zombie absorb too much damage when hp is near 0. I confirm there is such a thing.The code in a script that is in control void DamageTaken(Unit *pDealer, uint32 &uiDamage) { if (uiDamage > m_creature->GetHealth()) { uiDamage = 0; SetCombatMovement(false); if (!m_bHasDied) { if (DoCastSpellIfCan(m_creature, SPELL_ACID_BURST) == CAST_OK) { m_bHasDied = true; m_creature->ForcedDespawn(2000); } } } }

void UpdateAI(const uint32 uiDiff)
{
    if (m_bHasDied)
        return;

    if (!m_creature->SelectHostileTarget() || !m_creature->getVictim())
        return;

    DoMeleeAttackIfReady();
}

}; As can be seen, it must cast SPELL_ACID_BURST)And then despawn, but it does not. He just absorbs damage and all.

mns commented 10 years ago

1 - Do you sure must end at 100% hp ? 2 - fixed. 3 - WTF ?!

dufernst commented 10 years ago

When Dreamwalker has 100% the encounter ends (just now confirmed by blizz players).

mns commented 10 years ago

1 - https://github.com/mangosR2/scriptdev2/commit/83d25572106dc699362b255351684948f9b107a5