Index: scripts/globals/magic.lua =================================================================== --- scripts/globals/magic.lua (revision 3801) +++ scripts/globals/magic.lua (working copy) @@ -103,6 +103,7 @@ end local duration = 180; + duration = duration + target:getMod(MOD_ENSPELL_DURATION); if (caster:hasStatusEffect(EFFECT_COMPOSURE) == true and caster:getID() == target:getID()) then duration = duration * 3; end @@ -114,10 +115,7 @@ potency = 5 + ((5*magicskill)/100); end - -- enhancing sword - if(target:getEquipID(SLOT_MAIN) == 16605) then - potency = potency + 5; - end + potency = potency + target:getMod(MOD_ENSPELL_DMG); if(target:addStatusEffect(effect,potency,0,duration)) then spell:setMsg(230); Index: scripts/globals/status.lua =================================================================== --- scripts/globals/status.lua (revision 3801) +++ scripts/globals/status.lua (working copy) @@ -786,6 +786,7 @@ MOD_ENSPELL = 0x155 MOD_SPIKES = 0x156 MOD_ENSPELL_DMG = 0x157 +MOD_ENSPELL_DURATION = 0x19D MOD_SPIKES_DMG = 0x158 MOD_PERPETUATION_REDUCTION = 0x15A MOD_FIRE_AFFINITY = 0x15B Index: src/map/modifier.h =================================================================== --- src/map/modifier.h (revision 3801) +++ src/map/modifier.h (working copy) @@ -375,6 +375,7 @@ MOD_SPIKES =0x156,//store the type of spike spell active (0 if nothing) MOD_ENSPELL_DMG =0x157,//stores the base damage of the enspell before reductions MOD_SPIKES_DMG =0x158,//stores the base damage of the spikes before reductions + MOD_ENSPELL_DURATION =0x19D,//stores the additional duration time for enspell MOD_TP_BONUS =0x159, @@ -441,7 +442,7 @@ MOD_EAT_RAW_MEAT = 410 }; -#define MAX_MODIFIER 411 +#define MAX_MODIFIER 0x242