From: Astrid S. <ast...@us...> - 2008-05-29 14:05:43
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/creature/impl In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv2986/src/games/stendhal/server/entity/creature/impl Modified Files: Tag: VERSION_00_RELEASE_68 Coward.java Log Message: a bit more sophisticated, (not really though) Index: Coward.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/creature/impl/Coward.java,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** Coward.java 28 Mar 2008 20:11:25 -0000 1.1 --- Coward.java 29 May 2008 14:05:47 -0000 1.1.2.1 *************** *** 6,12 **** @Override public void getBetterAttackPosition(Creature creature) { ! creature.faceToward(creature.getAttackTarget()); ! creature.setDirection(creature.getDirection().oppositeDirection()); ! creature.setSpeed(creature.getBaseSpeed()); } --- 6,15 ---- @Override public void getBetterAttackPosition(Creature creature) { ! super.getBetterAttackPosition(creature); ! if (creature.isAttacked()){ ! creature.faceToward(creature.getAttackSources().get(0)); ! creature.setDirection(creature.getDirection().oppositeDirection()); ! creature.setSpeed(creature.getBaseSpeed()); ! } } |