- Joined
- Jan 12, 2004
- Messages
- 1,332
For those annoyed by this bug, here's a fix:
- the python exception can be fixed by changing line 2385 in CvSpellInterface from "for i in range(pLoopPlot.getNumUnits(),-1,-1)" to "for i in range(pLoopPlot.getNumUnits()-1,-1,-1)"
- for the spell to actually work change line 123 in CustomFunctions.py from "if abs(pLoopPlot.getX() - pPlot.getX()>1) or abs(pLoopPlot.getY() - pPlot.getY()>1):" to "if (abs(pLoopPlot.getX() - pPlot.getX())>1) or (abs(pLoopPlot.getY() - pPlot.getY())>1):"
It's also in the bug thread on page 51...
- the python exception can be fixed by changing line 2385 in CvSpellInterface from "for i in range(pLoopPlot.getNumUnits(),-1,-1)" to "for i in range(pLoopPlot.getNumUnits()-1,-1,-1)"
- for the spell to actually work change line 123 in CustomFunctions.py from "if abs(pLoopPlot.getX() - pPlot.getX()>1) or abs(pLoopPlot.getY() - pPlot.getY()>1):" to "if (abs(pLoopPlot.getX() - pPlot.getX())>1) or (abs(pLoopPlot.getY() - pPlot.getY())>1):"
It's also in the bug thread on page 51...