Looking4Group / L4G_Core

Looking4Group Core
http://looking4group.eu
GNU General Public License v2.0
37 stars 69 forks source link

Died after losing duel #1099

Open Xadras opened 8 years ago

Xadras commented 8 years ago

Originally reported by: Anonymous


duelled in HH and after duel I died and had to run and ress.


Xadras commented 8 years ago

Original comment by Anon X (Bitbucket: Anonx, GitHub: Anonx):


#!c++
// https://github.com/NostalriusTBC/Core/blob/master/src/game/Unit.cpp

    // duel ends when player has 1 or less hp
    bool duel_hasEnded = false;
    if (pVictim->GetTypeId() == TYPEID_PLAYER && ((Player*)pVictim)->duel && damage >= (health - 1))
    {
        // prevent kill only if killed in duel and killed by opponent or opponent controlled creature
        if (((Player*)pVictim)->duel->opponent == this || ((Player*)pVictim)->duel->opponent->GetObjectGuid() == GetOwnerGuid())
            damage = health - 1;

        duel_hasEnded = true;
    }
Xadras commented 8 years ago

Original comment by Mikkel Hartmark (Bitbucket: miffh, GitHub: Unknown):


And judgment.

Xadras commented 8 years ago

Original comment by Mikkel Hartmark (Bitbucket: miffh, GitHub: Unknown):


Revenge and weapon passive for prot warriors.

Xadras commented 8 years ago

Original comment by Mikkel Hartmark (Bitbucket: miffh, GitHub: Unknown):


Crusader strike!

Xadras commented 8 years ago

Original comment by Anon X (Bitbucket: Anonx, GitHub: Anonx):


it's important to know what spell killed you, we know of Wind Fury Proccs that can kill during duells.