Skip to content

Instantly share code, notes, and snippets.

@Sdwz
Created April 18, 2014 09:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sdwz/11033227 to your computer and use it in GitHub Desktop.
Save Sdwz/11033227 to your computer and use it in GitHub Desktop.
Index: java/com/l2jserver/gameserver/model/actor/L2Character.java
===================================================================
--- java/com/l2jserver/gameserver/model/actor/L2Character.java (révision 6502)
+++ java/com/l2jserver/gameserver/model/actor/L2Character.java (copie de travail)
@@ -3993,7 +3993,7 @@
*/
public boolean isInCombat()
{
- return hasAI() && ((getAI().getAttackTarget() != null) || getAI().isAutoAttacking());
+ return hasAI() && ((getAI().getCastTarget() != null) || (getAI().getAttackTarget() != null) || getAI().isAutoAttacking());
}
/**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment