Commit 062ac388 authored by bozimmerman's avatar bozimmerman

healing aura doesn't affect non-aggroable undead

git-svn-id: svn://192.168.1.10/public/CoffeeMud@15449 0d6f1817-ed0e-0410-87c9-987e46238f29
parent cc712fc1
......@@ -135,7 +135,10 @@ public class Prayer_HealingAura extends Prayer
final MOB M=myChar.location().fetchInhabitant(i);
if((M!=null)
&&((M.getVictim()==null)||(!followers.contains(M.getVictim()))))
followers.add(M);
{
if((!CMLib.flags().isUndead(M))||(myChar.mayIFight(M)))
followers.add(M);
}
}
}
if((fiveDown)<=0)
......@@ -143,24 +146,30 @@ public class Prayer_HealingAura extends Prayer
fiveDown=5;
final Ability A=CMClass.getAbility("Prayer_CureLight");
if(A!=null)
{
for (final Object element : followers)
A.invoke(myChar,((MOB)element),true,0);
}
}
if((tenDown)<=0)
{
tenDown=10;
final Ability A=CMClass.getAbility("Prayer_RemovePoison");
if(A!=null)
{
for (final Object element : followers)
A.invoke(myChar,((MOB)element),true,0);
}
}
if((twentyDown)<=0)
{
twentyDown=20;
final Ability A=CMClass.getAbility("Prayer_CureDisease");
if(A!=null)
{
for (final Object element : followers)
A.invoke(myChar,((MOB)element),true,0);
}
}
return true;
}
......
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