aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-02 16:50:37 -0600
committermegamage <none@none>2009-04-02 16:50:37 -0600
commit3d0dc473f11f04762050a6ea812f15534a8e981f (patch)
tree81b5a06d6cd9d4b7cf5100e69e1367e456ce25cb
parent9f65886787ef60eac063fd4abc59d172f9149761 (diff)
[7601] Not check reagents for triggered spells, it checked and taken at triggered spell casting moment in original spell. Author: VladimirMangos
--HG-- branch : trunk
-rw-r--r--src/game/Spell.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index cb9ed28033c..0936e8d41af 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -4881,8 +4881,8 @@ SpellCastResult Spell::CheckItems()
focusObject = ok; // game object found in range
}
- // check reagents
- if (!p_caster->CanNoReagentCast(m_spellInfo))
+ // check reagents (ignore triggered spells with reagents processed by original spell) and special reagent ignore case.
+ if (!m_IsTriggeredSpell && !p_caster->CanNoReagentCast(m_spellInfo))
{
for(uint32 i=0;i<8;i++)
{