- Tweaked the timing of the aura casting AI.

This commit is contained in:
Sloth
2011-12-16 17:57:35 +00:00
parent 048f4740b3
commit db1522d7bb

View File

@@ -865,16 +865,12 @@ public class AbilityFactoryAttach {
source.setSVar("PayX", Integer.toString(xPay)); source.setSVar("PayX", Integer.toString(xPay));
} }
if (AbilityFactory.isSorcerySpeed(sa)) { if (AllZone.getPhase().isAfter(Constant.Phase.COMBAT_DECLARE_BLOCKERS_INSTANT_ABILITY)
if (AllZone.getPhase().is(Constant.Phase.MAIN1)) { && !"Curse".equals(af.getMapParams().get("AILogic"))) {
chance = r.nextFloat() <= .75;
} else {
// Don't Attach Sorcery Speed stuff after Main1
return false; return false;
} }
} else {
chance &= r.nextFloat() <= .75; chance &= r.nextFloat() <= .75;
}
return chance; return chance;
} }