aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2017-08-29 23:27:52 +0200
committerShauren <shauren.trinity@gmail.com>2017-08-29 23:27:52 +0200
commitc072cfed799975d210efebbdc689bf7512ec68e4 (patch)
tree6350615465b164068910b6bd4eea7bede1ccad5b /src
parenta834c66a4e637edfc1d271daf3c64468fb8c731f (diff)
Core/Spells: Removed old Spirit of Redemption code
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Battlegrounds/Battleground.cpp2
-rw-r--r--src/server/game/Entities/Unit/Unit.cpp28
-rw-r--r--src/server/game/Spells/Auras/SpellAuraEffects.cpp3
3 files changed, 4 insertions, 29 deletions
diff --git a/src/server/game/Battlegrounds/Battleground.cpp b/src/server/game/Battlegrounds/Battleground.cpp
index fcf4263800e..7adccabdc77 100644
--- a/src/server/game/Battlegrounds/Battleground.cpp
+++ b/src/server/game/Battlegrounds/Battleground.cpp
@@ -1859,7 +1859,7 @@ uint32 Battleground::GetAlivePlayersCountByTeam(uint32 Team) const
if (itr->second.Team == Team)
{
Player* player = ObjectAccessor::FindPlayer(itr->first);
- if (player && player->IsAlive() && player->GetShapeshiftForm() != FORM_SPIRIT_OF_REDEMPTION)
+ if (player && player->IsAlive())
++count;
}
}
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
index a5947dec0ac..999feb07560 100644
--- a/src/server/game/Entities/Unit/Unit.cpp
+++ b/src/server/game/Entities/Unit/Unit.cpp
@@ -11032,32 +11032,8 @@ void Unit::Kill(Unit* victim, bool durabilityLoss)
if (Player* killerPlayer = GetCharmerOrOwnerPlayerOrPlayerItself())
killerPlayer->UpdateCriteria(CRITERIA_TYPE_GET_KILLING_BLOWS, 1, 0, 0, victim);
- // if talent known but not triggered (check priest class for speedup check)
- bool spiritOfRedemption = false;
- if (victim->GetTypeId() == TYPEID_PLAYER && victim->getClass() == CLASS_PRIEST)
- {
- if (AuraEffect const* spiritOfRedemptionEffect = GetAuraEffect(20711, EFFECT_0))
- {
- // save value before aura remove
- uint32 ressSpellId = victim->GetUInt32Value(PLAYER_SELF_RES_SPELL);
- if (!ressSpellId)
- ressSpellId = victim->ToPlayer()->GetResurrectionSpellId();
- // Remove all expected to remove at death auras (most important negative case like DoT or periodic triggers)
- victim->RemoveAllAurasOnDeath();
- // restore for use at real death
- victim->SetUInt32Value(PLAYER_SELF_RES_SPELL, ressSpellId);
-
- // FORM_SPIRIT_OF_REDEMPTION and related auras
- victim->CastSpell(victim, 27827, true, NULL, spiritOfRedemptionEffect);
- spiritOfRedemption = true;
- }
- }
-
- if (!spiritOfRedemption)
- {
- TC_LOG_DEBUG("entities.unit", "SET JUST_DIED");
- victim->setDeathState(JUST_DIED);
- }
+ TC_LOG_DEBUG("entities.unit", "SET JUST_DIED");
+ victim->setDeathState(JUST_DIED);
// Inform pets (if any) when player kills target)
// MUST come after victim->setDeathState(JUST_DIED); or pet next target
diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
index 6a6e14857b9..72545e45e72 100644
--- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp
+++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
@@ -1317,6 +1317,7 @@ void AuraEffect::HandleShapeshiftBoosts(Unit* target, bool apply) const
case FORM_SPIRIT_OF_REDEMPTION:
spellId = 27792;
spellId2 = 27795;
+ spellId3 = 62371;
break;
case FORM_SHADOWFORM:
if (target->HasAura(107906)) // Glyph of Shadow
@@ -1614,8 +1615,6 @@ void AuraEffect::HandleSpiritOfRedemption(AuraApplication const* aurApp, uint8 m
if (!target->IsStandState())
target->SetStandState(UNIT_STAND_STATE_STAND);
}
-
- target->SetHealth(1);
}
// die at aura end
else if (target->IsAlive())