EmperorFool
Deity
The values for the moves field are not the standard MPs you see on-screen (1 or 2) but rather 12 (IIRC) per MP. This is controlled by an XML value. First, remove the first red line you posted. The MP reduction should happen in the function that does the sweep. Second, change that line to
Edit: And yes, using changeMoves() is better than set(get() - x):
Code:
pUnit.setMoves(pUnit.getMoves() - [B][COLOR="Red"]gc.getMOVE_DENOMINATOR()[/COLOR][/B])
Edit: And yes, using changeMoves() is better than set(get() - x):
Code:
pUnit.changeMoves(-[B][COLOR="Red"]gc.getMOVE_DENOMINATOR()[/COLOR][/B])