There is a different rez spell depending on race

This commit is contained in:
Michael Cook (mackal) 2016-07-24 22:53:57 -04:00
parent f42b0351fd
commit 3963897fe4
2 changed files with 5 additions and 2 deletions

View File

@ -704,7 +704,7 @@ bool IsCombatSkill(uint16 spell_id)
bool IsResurrectionEffects(uint16 spell_id)
{
// spell id 756 is Resurrection Effects spell
if(IsValidSpell(spell_id) && spell_id == 756)
if(IsValidSpell(spell_id) && (spell_id == 756 || spell_id == 757))
return true;
return false;

View File

@ -1016,7 +1016,10 @@ void Client::OPRezzAnswer(uint32 Action, uint32 SpellID, uint16 ZoneID, uint16 I
if((SpellEffectDescNum == 82) || (SpellEffectDescNum == 39067)) {
SetMana(0);
SetHP(GetMaxHP()/5);
SpellOnTarget(756, this); // Rezz effects
int rez_eff = 756;
if (GetRace() == BARBARIAN || GetRace() == DWARF || GetRace() == TROLL || GetRace() == OGRE)
rez_eff = 757
SpellOnTarget(rez_eff, this); // Rezz effects
}
else {
SetMana(GetMaxMana());