Open Xadras opened 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;
}
Original comment by Mikkel Hartmark (Bitbucket: miffh, GitHub: Unknown):
Revenge and weapon passive for prot warriors.
Originally reported by: Anonymous
duelled in HH and after duel I died and had to run and ress.