aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorQAston <none@none>2009-06-07 11:50:34 +0200
committerQAston <none@none>2009-06-07 11:50:34 +0200
commit37d94053df42a9fe894afffae5b372b43704e4cc (patch)
tree29897cdf954477fd05ced3b80a15d0f3a45d2af0 /src
parent90ef7277b502a1d404d8adfb4e35da8b8cbb9a00 (diff)
*Fix Glyph of Renewed Life.
*Update formula for Death strike healing amount. --HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Player.cpp4
-rw-r--r--src/game/Unit.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index eba21fa5f99..b2689f6572c 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -19388,8 +19388,8 @@ uint32 Player::GetResurrectionSpellId()
}
}
- // Reincarnation (passive spell) // prio: 1
- if(prio < 1 && HasSpell(20608) && !HasSpellCooldown(21169) && HasItemCount(17030,1))
+ // Reincarnation (passive spell) // prio: 1 // Glyph of Renewed Life
+ if(prio < 1 && HasSpell(20608) && !HasSpellCooldown(21169) && (HasAura(58059) || HasItemCount(17030,1)))
spell_id = 21169;
return spell_id;
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index c2d6f77acec..b9ba6dbe2c5 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -6659,7 +6659,7 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
// Death Strike healing effect
if (dummySpell->Id == 45469)
{
- int32 heal=0.5f * pVictim->GetDiseasesByCaster(GetGUID()) * damage+damage;
+ int32 heal=pVictim->GetDiseasesByCaster(GetGUID()) * GetMaxHealth()* 5 /100;
CastCustomSpell(this,45470,&heal,NULL,NULL,true);
return true;
}