Add custom chance for some spells in 16180 and ranks (added in 308)
Show enchant id in error log
Signed-off-by: DiSlord <[email protected]>
--HG--
branch : trunk
This commit is contained in:
+1
-1
@@ -12397,7 +12397,7 @@ void Player::ApplyEnchantment(Item *item,EnchantmentSlot slot,bool apply, bool a
|
|||||||
// processed in Player::CastItemUseSpell
|
// processed in Player::CastItemUseSpell
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
sLog.outError("Unknown item enchantment display type: %d",enchant_display_type);
|
sLog.outError("Unknown item enchantment (id = %d) display type: %d", enchant_id, enchant_display_type);
|
||||||
break;
|
break;
|
||||||
} /*switch(enchant_display_type)*/
|
} /*switch(enchant_display_type)*/
|
||||||
} /*for*/
|
} /*for*/
|
||||||
|
|||||||
@@ -5871,6 +5871,9 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
|
|||||||
// Improved Water Shield
|
// Improved Water Shield
|
||||||
if (dummySpell->SpellIconID == 2287)
|
if (dummySpell->SpellIconID == 2287)
|
||||||
{
|
{
|
||||||
|
// Lesser Healing Wave need aditional 60% roll
|
||||||
|
if (procSpell->SpellFamilyFlags & 0x0000000000000080LL && !roll_chance_i(60))
|
||||||
|
return false;
|
||||||
// lookup water shield
|
// lookup water shield
|
||||||
AuraList const& vs = GetAurasByType(SPELL_AURA_PROC_TRIGGER_SPELL);
|
AuraList const& vs = GetAurasByType(SPELL_AURA_PROC_TRIGGER_SPELL);
|
||||||
for(AuraList::const_iterator itr = vs.begin(); itr != vs.end(); ++itr)
|
for(AuraList::const_iterator itr = vs.begin(); itr != vs.end(); ++itr)
|
||||||
|
|||||||
Reference in New Issue
Block a user