Core/Spells: Fixed The Art of War procing only on melee attacks, by tassader1000

Core/Spells: Added missing change in previous revision

Closes issue #2386.

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-09-08 11:22:51 +02:00
parent e5d612d339
commit 5c13a08d87
3 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -18961,8 +18961,8 @@ INSERT INTO `spell_proc_event` (`entry`,`SchoolMask`,`SpellFamilyName`,`SpellFam
( 53381, 0x00, 10, 0x00800000, 0x00020000, 0x00000000, 0x00000000, 0x00040002, 0, 0, 0), -- Righteous Vengeance (Rank 2)
( 53382, 0x00, 10, 0x00800000, 0x00020000, 0x00000000, 0x00000000, 0x00040002, 0, 0, 0), -- Righteous Vengeance (Rank 3)
( 53397, 0x00, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000002, 0, 0, 0), -- Invigoration (Rank 1)
( 53486, 0x00, 10, 0x00800000, 0x00028000, 0x00000000, 0x00000004, 0x00040002, 0, 0, 0), -- The Art of War (Rank 1)
( 53488, 0x00, 10, 0x00800000, 0x00028000, 0x00000000, 0x00000004, 0x00040002, 0, 0, 0), -- The Art of War (Rank 2)
( 53486, 0x00, 10, 0x00800000, 0x00028000, 0x00000000, 0x00000000, 0x00040002, 0, 0, 0), -- The Art of War (Rank 1)
( 53488, 0x00, 10, 0x00800000, 0x00028000, 0x00000000, 0x00000000, 0x00040002, 0, 0, 0), -- The Art of War (Rank 2)
( 53501, 0x00, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000002, 0, 0, 0), -- Sheath of Light (Rank 1)
( 53502, 0x00, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000002, 0, 0, 0), -- Sheath of Light (Rank 2)
( 53503, 0x00, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000002, 0, 0, 0), -- Sheath of Light (Rank 3)
@@ -0,0 +1 @@
UPDATE `spell_proc_event` SET `procFlags`=0 WHERE `entry` IN (53486,53488);
+1 -1
View File
@@ -5736,7 +5736,7 @@ SpellCastResult Spell::CheckCast(bool strict)
// check if caster has at least 1 combo point for spells that require combo points
if (m_needComboPoints)
if (Player* plrCaster = m_caster->ToPlayer())
if (!m_caster->ToPlayer()->GetComboPoints())
if (!plrCaster->GetComboPoints())
return SPELL_FAILED_NO_COMBO_POINTS;
// don't allow channeled spells / spells with cast time to be casted while moving