*Fix Fan of Knives.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-04-14 20:21:16 +02:00
parent 7d2e5c31a8
commit b966e63f73
3 changed files with 10 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
INSERT IGNORE INTO `spell_linked_spell` VALUES (51723, 52874, 0, 'Fan Of Knives');
+1 -1
View File
@@ -6176,7 +6176,7 @@ void AuraEffect::PeriodicTick()
// Haunting Spirits
if (GetId() == 7057)
{
m_target->CastSpell((Unit*) , m_amount , true);
m_target->CastSpell((Unit*)NULL , m_amount , true);
m_amplitude = irand (0 , 60 ) + 30;
m_amplitude *= IN_MILISECONDS;
break;
+8
View File
@@ -4126,6 +4126,14 @@ void Spell::SpellDamageWeaponDmg(uint32 i)
if(m_caster->GetTypeId()==TYPEID_PLAYER)
((Player*)m_caster)->AddComboPoints(unitTarget, 1);
}
// Fan of Knives
if(m_spellInfo->SpellFamilyFlags[1] & 0x40000)
{
// 50% more damage with daggers
if (Item* item = ((Player*)m_caster)->GetWeaponForAttack(m_attackType))
if (item->GetProto()->SubClass == ITEM_SUBCLASS_WEAPON_DAGGER)
totalDamagePercentMod *= 1.5f;
}
// Mutilate (for each hand)
else if(m_spellInfo->SpellFamilyFlags[1] & 0x6)
{