From 0a6d98b5e1e06ce3ef117753fd188c0f5b0e0167 Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Tue, 14 Jan 2014 22:24:01 -0500 Subject: [PATCH] Fix mod rods --- zone/spell_effects.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zone/spell_effects.cpp b/zone/spell_effects.cpp index 1068667a3..ce67926f7 100644 --- a/zone/spell_effects.cpp +++ b/zone/spell_effects.cpp @@ -1223,6 +1223,8 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial) int charges; if (item->Stackable) charges = (spell.formula[i] > item->StackSize) ? item->StackSize : spell.formula[i]; + else if (item->MaxCharges) // mod rods etc + charges = (spell.formula[i] > item->MaxCharges) ? item->MaxCharges : spell.formula[i]; else charges = 1; @@ -1263,6 +1265,8 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial) if (item->Stackable) charges = (spell.formula[i] > item->StackSize) ? item->StackSize : spell.formula[i]; + else if (item->MaxCharges) // mod rods, not sure if there are actual examples of this for IntoBag + charges = (spell.formula[i] > item->MaxCharges) ? item->MaxCharges : spell.formula[i]; else charges = 1;