mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-25 11:21:58 +01:00
This commit is contained in:
@@ -237,12 +237,12 @@ class spell_intense_cold : public SpellScriptLoader
|
||||
|
||||
void HandlePeriodicTick(AuraEffect const* aurEff)
|
||||
{
|
||||
Unit* caster = GetCaster();
|
||||
if (!caster)
|
||||
if (aurEff->GetBase()->GetStackAmount() < 2)
|
||||
return;
|
||||
|
||||
if (aurEff->GetBase()->GetStackAmount() >= 2)
|
||||
caster->GetAI()->SetGUID(GetTarget()->GetGUID(), DATA_INTENSE_COLD);
|
||||
Unit* caster = GetCaster();
|
||||
if (!caster || !caster->GetAI())
|
||||
return;
|
||||
caster->GetAI()->SetGUID(GetTarget()->GetGUID(), DATA_INTENSE_COLD);
|
||||
}
|
||||
|
||||
void Register()
|
||||
|
||||
@@ -167,9 +167,9 @@ class spell_dk_anti_magic_zone : public SpellScriptLoader
|
||||
{
|
||||
SpellInfo const* talentSpell = sSpellMgr->GetSpellInfo(DK_SPELL_ANTI_MAGIC_SHELL_TALENT);
|
||||
amount = talentSpell->Effects[EFFECT_0].CalcValue(GetCaster());
|
||||
// assume caster is a player here
|
||||
if (Unit* caster = GetCaster())
|
||||
amount += int32(2 * caster->ToPlayer()->GetTotalAttackPowerValue(BASE_ATTACK));
|
||||
Unit* caster = GetCaster();
|
||||
if(Player* player = caster->ToPlayer())
|
||||
amount += int32(2 * player->GetTotalAttackPowerValue(BASE_ATTACK));
|
||||
}
|
||||
|
||||
void Absorb(AuraEffect* /*aurEff*/, DamageInfo & dmgInfo, uint32 & absorbAmount)
|
||||
|
||||
Reference in New Issue
Block a user