mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[8340] Implement talent 29447 and ranks.
Original patch provided by raftom. More compact spell filter code provided by Sarjuuk. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
6d9448dd7f
commit
3c297ac8c4
2 changed files with 30 additions and 5 deletions
|
|
@ -7981,12 +7981,37 @@ uint32 Unit::SpellDamageBonus(Unit *pVictim, SpellEntry const *spellProto, uint3
|
||||||
}
|
}
|
||||||
|
|
||||||
// Custom scripted damage
|
// Custom scripted damage
|
||||||
|
switch(spellProto->SpellFamilyName)
|
||||||
|
{
|
||||||
|
case SPELLFAMILY_MAGE:
|
||||||
|
{
|
||||||
// Ice Lance
|
// Ice Lance
|
||||||
if (spellProto->SpellFamilyName == SPELLFAMILY_MAGE && spellProto->SpellIconID == 186)
|
if (spellProto->SpellIconID == 186)
|
||||||
{
|
{
|
||||||
if (pVictim->isFrozen())
|
if (pVictim->isFrozen())
|
||||||
DoneTotalMod *= 3.0f;
|
DoneTotalMod *= 3.0f;
|
||||||
}
|
}
|
||||||
|
// Torment the weak affected (Arcane Barrage, Arcane Blast, Frostfire Bolt, Arcane Missiles, Fireball)
|
||||||
|
if ((spellProto->SpellFamilyFlags & UI64LIT(0x0000900020200021)) &&
|
||||||
|
(pVictim->HasAuraType(SPELL_AURA_MOD_DECREASE_SPEED) || pVictim->HasAuraType(SPELL_AURA_MELEE_SLOW)))
|
||||||
|
{
|
||||||
|
//Search for Torment the weak dummy aura
|
||||||
|
Unit::AuraList const& ttw = GetAurasByType(SPELL_AURA_DUMMY);
|
||||||
|
for(Unit::AuraList::const_iterator i = ttw.begin(); i != ttw.end(); ++i)
|
||||||
|
{
|
||||||
|
if ((*i)->GetSpellProto()->SpellIconID == 3263)
|
||||||
|
{
|
||||||
|
DoneTotalMod *= ((*i)->GetModifier()->m_amount+100.0f) / 100.0f;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// ..taken
|
// ..taken
|
||||||
AuraList const& mModDamagePercentTaken = pVictim->GetAurasByType(SPELL_AURA_MOD_DAMAGE_PERCENT_TAKEN);
|
AuraList const& mModDamagePercentTaken = pVictim->GetAurasByType(SPELL_AURA_MOD_DAMAGE_PERCENT_TAKEN);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8339"
|
#define REVISION_NR "8340"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue