Commit b267855e authored by bozimmerman's avatar bozimmerman

fix to divine resistance

git-svn-id: svn://192.168.1.10/public/CoffeeMud@15452 0d6f1817-ed0e-0410-87c9-987e46238f29
parent a018d326
......@@ -107,6 +107,7 @@ public class Prayer_DivineResistance extends Prayer
if((msg.target()==affected)
&&(affected instanceof MOB)
&&(CMath.bset(msg.targetMajor(), CMMsg.MASK_MALICIOUS))
&&((msg.tool()==null)||(!permProts.contains(msg.tool())))
&&(prots>0)
&&(msg.source().location()!=null))
......@@ -116,9 +117,11 @@ public class Prayer_DivineResistance extends Prayer
final int tm=msg.targetMinor();
final int[] CMMSGMAP=CharStats.CODES.CMMSGMAP();
for(final int i : CharStats.CODES.SAVING_THROWS())
{
if((CMMSGMAP[i]>=0)
&&((sm==CMMSGMAP[i])||(tm==CMMSGMAP[i])))
proceed=true;
}
if((msg.tool() instanceof Trap)||(proceed))
{
if(msg.tool()!=null)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment