Guest User

Untitled

a guest
Jun 18th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. addCustomEvent (
  2. new Condition("nearWalls") {
  3. public boolean test()
  4. {
  5. return getX() < 10 ||
  6. getX() > getBattleFieldWidth() - 10 ||
  7. getY() < 10 ||
  8. getY() > getBattleFieldHeight() - 10;
  9. }
  10. }
  11. );
Add Comment
Please, Sign In to add comment