Merge
--HG-- branch : trunk
This commit is contained in:
+2
-2
@@ -1020,7 +1020,7 @@ void Spell::DoAllEffectOnTarget(TargetInfo *target)
|
|||||||
|
|
||||||
//Spells with this flag cannot trigger if effect is casted on self
|
//Spells with this flag cannot trigger if effect is casted on self
|
||||||
// Slice and Dice, relentless strikes, eviscerate
|
// Slice and Dice, relentless strikes, eviscerate
|
||||||
bool canEffectTrigger = m_canTrigger && (m_spellInfo->AttributesEx4 & (SPELL_ATTR_EX4_CANT_PROC_FROM_SELFCAST | SPELL_ATTR_EX4_UNK4) ? m_caster!=unitTarget : true);
|
bool canEffectTrigger = m_canTrigger && (m_spellInfo->AttributesEx4 & (SPELL_ATTR_EX4_CANT_PROC_FROM_SELFCAST) ? m_caster!=unitTarget : true);
|
||||||
Unit * spellHitTarget = NULL;
|
Unit * spellHitTarget = NULL;
|
||||||
|
|
||||||
if (missInfo==SPELL_MISS_NONE) // In case spell hit target, do all effect on that target
|
if (missInfo==SPELL_MISS_NONE) // In case spell hit target, do all effect on that target
|
||||||
@@ -1340,7 +1340,7 @@ void Spell::DoTriggersOnSpellHit(Unit *unit)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// spells with this flag can trigger only if not selfcast (eviscerate for example)
|
// spells with this flag can trigger only if not selfcast (eviscerate for example)
|
||||||
if (m_ChanceTriggerSpells.size() && (!((m_spellInfo->AttributesEx4 & SPELL_ATTR_EX4_CANT_PROC_FROM_SELFCAST | SPELL_ATTR_EX4_UNK4) && unit==m_caster)))
|
if (m_ChanceTriggerSpells.size() && (!((m_spellInfo->AttributesEx4 & SPELL_ATTR_EX4_CANT_PROC_FROM_SELFCAST) && unit==m_caster)))
|
||||||
{
|
{
|
||||||
int _duration=0;
|
int _duration=0;
|
||||||
for(ChanceTriggerSpells::const_iterator i = m_ChanceTriggerSpells.begin(); i != m_ChanceTriggerSpells.end(); ++i)
|
for(ChanceTriggerSpells::const_iterator i = m_ChanceTriggerSpells.begin(); i != m_ChanceTriggerSpells.end(); ++i)
|
||||||
|
|||||||
@@ -3448,6 +3448,11 @@ void SpellMgr::LoadSpellCustomAttr()
|
|||||||
else if(spellInfo->SpellFamilyFlags[0] & 0x8)
|
else if(spellInfo->SpellFamilyFlags[0] & 0x8)
|
||||||
mSpellCustomAttr[i] |= SPELL_ATTR_CU_AURA_CC;
|
mSpellCustomAttr[i] |= SPELL_ATTR_CU_AURA_CC;
|
||||||
break;
|
break;
|
||||||
|
// Do not allow Deadly throw and Slice and Dice to proc twice
|
||||||
|
case SPELLFAMILY_ROGUE:
|
||||||
|
if(spellInfo->SpellFamilyFlags[1] & 0x1 || spellInfo->SpellFamilyFlags[0] & 0x40000)
|
||||||
|
spellInfo->AttributesEx4 |= SPELL_ATTR_EX4_CANT_PROC_FROM_SELFCAST;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user