From 682184c668942c9a65beef92d9adf74cfb763e5a Mon Sep 17 00:00:00 2001 From: megamage Date: Thu, 25 Dec 2008 21:45:41 -0600 Subject: *Fix mining (this time it should work). --HG-- branch : trunk --- src/game/Spell.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/game/Spell.cpp') diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index a5da4e0fe78..1e2ac245aeb 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -3890,7 +3890,8 @@ uint8 Spell::CanCast(bool strict) SkillValue = 0; // add the damage modifier from the spell casted (cheat lock / skeleton key etc.) (use m_currentBasePoints, CalculateDamage returns wrong value) - SkillValue += m_currentBasePoints[i]/*+1*/; + // TODO: is this a hack? + SkillValue += m_currentBasePoints[i]+1; // get the required lock value int32 ReqValue=0; -- cgit v1.2.3