*Searing totem is no longer kamikaze
--HG-- branch : trunk
This commit is contained in:
+9
-9
@@ -84,6 +84,15 @@ void Totem::InitSummon(uint32 duration)
|
|||||||
data << GetGUID();
|
data << GetGUID();
|
||||||
SendMessageToSet(&data,true);
|
SendMessageToSet(&data,true);
|
||||||
|
|
||||||
|
// Get spell casted by totem
|
||||||
|
SpellEntry const * totemSpell = sSpellStore.LookupEntry(GetSpell());
|
||||||
|
if (totemSpell)
|
||||||
|
{
|
||||||
|
// If spell have cast time -> so its active totem
|
||||||
|
if (GetSpellCastTime(totemSpell))
|
||||||
|
m_type = TOTEM_ACTIVE;
|
||||||
|
}
|
||||||
|
|
||||||
if(m_type == TOTEM_PASSIVE)
|
if(m_type == TOTEM_PASSIVE)
|
||||||
CastSpell(this, GetSpell(), true);
|
CastSpell(this, GetSpell(), true);
|
||||||
|
|
||||||
@@ -93,15 +102,6 @@ void Totem::InitSummon(uint32 duration)
|
|||||||
m_duration = duration;
|
m_duration = duration;
|
||||||
|
|
||||||
SetLevel(m_owner->getLevel());
|
SetLevel(m_owner->getLevel());
|
||||||
|
|
||||||
// Get spell casted by totem
|
|
||||||
SpellEntry const * totemSpell = sSpellStore.LookupEntry(GetSpell());
|
|
||||||
if (totemSpell)
|
|
||||||
{
|
|
||||||
// If spell have cast time -> so its active totem
|
|
||||||
if (GetSpellCastTime(totemSpell))
|
|
||||||
m_type = TOTEM_ACTIVE;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Totem::UnSummon()
|
void Totem::UnSummon()
|
||||||
|
|||||||
@@ -51,7 +51,6 @@ class Totem : public Minion
|
|||||||
void UpdateMaxPower(Powers /*power*/) {}
|
void UpdateMaxPower(Powers /*power*/) {}
|
||||||
void UpdateAttackPowerAndDamage(bool /*ranged*/ ) {}
|
void UpdateAttackPowerAndDamage(bool /*ranged*/ ) {}
|
||||||
void UpdateDamagePhysical(WeaponAttackType /*attType*/) {}
|
void UpdateDamagePhysical(WeaponAttackType /*attType*/) {}
|
||||||
void SetDuration(int32 dur) { m_duration = dur; }
|
|
||||||
|
|
||||||
bool IsImmunedToSpellEffect(SpellEntry const* spellInfo, uint32 index) const;
|
bool IsImmunedToSpellEffect(SpellEntry const* spellInfo, uint32 index) const;
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -3953,7 +3953,7 @@ void Unit::RemoveAurasDueToSpellByDispel(uint32 spellId, uint64 casterGUID, Unit
|
|||||||
int32 damage = aur->GetPartAura(0)->GetAmount()*9;
|
int32 damage = aur->GetPartAura(0)->GetAmount()*9;
|
||||||
RemoveAuraFromStack(iter, AURA_REMOVE_BY_ENEMY_SPELL);
|
RemoveAuraFromStack(iter, AURA_REMOVE_BY_ENEMY_SPELL);
|
||||||
// backfire damage and silence
|
// backfire damage and silence
|
||||||
dispeler->CastCustomSpell(dispeler, 31117, &damage, NULL, NULL, true, NULL, NULL,GetGUID());
|
dispeler->CastCustomSpell(this, 31117, &damage, NULL, NULL, true, NULL, NULL,dispeler->GetGUID());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
RemoveAuraFromStack(iter, AURA_REMOVE_BY_ENEMY_SPELL);
|
RemoveAuraFromStack(iter, AURA_REMOVE_BY_ENEMY_SPELL);
|
||||||
|
|||||||
Reference in New Issue
Block a user