From: Kimmo R. <ki...@us...> - 2012-06-27 16:52:04
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/creature/impl/attack In directory vz-cvs-4.sog:/tmp/cvs-serv11680/src/games/stendhal/server/entity/creature/impl/attack Modified Files: AttackWeakest.java Log Message: Pick victim from any attackable player, not just from those next to the creature Index: AttackWeakest.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/creature/impl/attack/AttackWeakest.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** AttackWeakest.java 26 Jun 2012 17:48:44 -0000 1.2 --- AttackWeakest.java 27 Jun 2012 16:52:02 -0000 1.3 *************** *** 71,75 **** } ! if (creature.nextTo(enemy) && !enemy.isInvisibleToCreatures()) { /* * Use level as an approximation of the strength. Prefer keeping --- 71,76 ---- } ! if (creature.getAttackStrategy().canAttackNow(creature, enemy) ! && !enemy.isInvisibleToCreatures()) { /* * Use level as an approximation of the strength. Prefer keeping |