mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-30 05:43:12 +01:00
Core/Scripts: fix Healing Stream Totem coefficient and animation
This commit is contained in:
1
sql/updates/world/3.3.5/2018_02_15_00_world_335.sql
Normal file
1
sql/updates/world/3.3.5/2018_02_15_00_world_335.sql
Normal file
@@ -0,0 +1 @@
|
||||
DELETE FROM `spell_bonus_data` WHERE `entry`=52042;
|
||||
@@ -3047,6 +3047,11 @@ void SpellMgr::LoadSpellInfoCorrections()
|
||||
ApplySpellFix({
|
||||
379, // Earth Shield
|
||||
33778, // Lifebloom Final Bloom
|
||||
|
||||
52042, // Healing Stream Totem
|
||||
// this one is here because we have no SP bonus for dmgclass none spell
|
||||
// but this one should since it's DBC data, it won't crit because it already has can't crit attr
|
||||
|
||||
64844, // Divine Hymn
|
||||
71607, // Item - Bauble of True Blood 10m
|
||||
71646, // Item - Bauble of True Blood 25m
|
||||
|
||||
@@ -990,19 +990,22 @@ class spell_sha_healing_stream_totem : public SpellScriptLoader
|
||||
if (Unit* target = GetHitUnit())
|
||||
{
|
||||
Unit* caster = GetCaster();
|
||||
if (caster->GetTypeId() == TYPEID_UNIT && caster->IsTotem())
|
||||
if (Unit* owner = caster->GetOwner())
|
||||
caster = owner;
|
||||
ObjectGuid originalCasterGuid = caster->GetGUID();
|
||||
|
||||
// Restorative Totems
|
||||
if (AuraEffect const* aurEff = caster->GetAuraEffect(SPELL_AURA_DUMMY, SPELLFAMILY_SHAMAN, SHAMAN_ICON_ID_RESTORATIVE_TOTEMS, EFFECT_1))
|
||||
AddPct(damage, aurEff->GetAmount());
|
||||
if (Player* player = caster->GetAffectingPlayer())
|
||||
{
|
||||
originalCasterGuid = player->GetGUID();
|
||||
|
||||
// Glyph of Healing Stream Totem
|
||||
if (AuraEffect const* aurEff = caster->GetAuraEffect(SPELL_SHAMAN_GLYPH_OF_HEALING_STREAM_TOTEM, EFFECT_0))
|
||||
AddPct(damage, aurEff->GetAmount());
|
||||
// Restorative Totems
|
||||
if (AuraEffect const* aurEff = player->GetAuraEffect(SPELL_AURA_DUMMY, SPELLFAMILY_SHAMAN, SHAMAN_ICON_ID_RESTORATIVE_TOTEMS, EFFECT_1))
|
||||
AddPct(damage, aurEff->GetAmount());
|
||||
|
||||
CastSpellExtraArgs args(GetOriginalCaster()->GetGUID());
|
||||
// Glyph of Healing Stream Totem
|
||||
if (AuraEffect const* aurEff = player->GetAuraEffect(SPELL_SHAMAN_GLYPH_OF_HEALING_STREAM_TOTEM, EFFECT_0))
|
||||
AddPct(damage, aurEff->GetAmount());
|
||||
}
|
||||
|
||||
CastSpellExtraArgs args(originalCasterGuid);
|
||||
args.AddSpellBP0(damage);
|
||||
caster->CastSpell(target, SPELL_SHAMAN_TOTEM_HEALING_STREAM_HEAL, args);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user