diff options
author | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-30 17:11:55 +0000 |
---|---|---|
committer | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-30 17:11:55 +0000 |
commit | a871325dd0d55160996124d4a67c7ba23d748be0 (patch) | |
tree | f69c453e7eceefdbff786dc2e381b38c7d30dd1c /src/map/unit.c | |
parent | 4ef11952653e142f8a6f28194fa56eb615860339 (diff) | |
download | hercules-a871325dd0d55160996124d4a67c7ba23d748be0.tar.gz hercules-a871325dd0d55160996124d4a67c7ba23d748be0.tar.bz2 hercules-a871325dd0d55160996124d4a67c7ba23d748be0.tar.xz hercules-a871325dd0d55160996124d4a67c7ba23d748be0.zip |
* [Added]
- Visual Studio .NET 2003 includes for mercenary.c
* [Fixed]
- Logic error in NPC custom AI in unit.c
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6853 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index 78e403aea..879a73beb 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -1079,7 +1079,7 @@ int unit_attack(struct block_list *src,int target_id,int type) return 0;
}
- if(!(src->type == BL_MOB && !((TBL_MOB *)src)->state.killer) && (battle_check_target(src,target,BCT_ENEMY)<=0 ||
+ if(!(src->type == BL_MOB && ((TBL_MOB *)src)->state.killer) && (battle_check_target(src,target,BCT_ENEMY)<=0 ||
!status_check_skilluse(src, target, 0, 0))
) {
unit_unattackable(src);
|