diff options
author | Hercules.ws <Hercules@efficiently.awesome> | 2014-10-25 18:15:42 +0200 |
---|---|---|
committer | HerculesWSAPI <Hercules@efficiently.awesome> | 2014-10-25 18:15:42 +0200 |
commit | 468e13d4d12dadc9b2a1666f6d2303e30cf93d82 (patch) | |
tree | 1efd44000ff556d861f1dd5d52f41e22cbf6415c /src/map/battle.c | |
parent | a5c0636f74a2177839aec9153b542afd8c36850a (diff) | |
download | hercules-468e13d4d12dadc9b2a1666f6d2303e30cf93d82.tar.gz hercules-468e13d4d12dadc9b2a1666f6d2303e30cf93d82.tar.bz2 hercules-468e13d4d12dadc9b2a1666f6d2303e30cf93d82.tar.xz hercules-468e13d4d12dadc9b2a1666f6d2303e30cf93d82.zip |
HPM Hooks Update
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index 5b041d9c3..1b8e44cb3 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -6254,10 +6254,10 @@ int battle_check_target( struct block_list *src, struct block_list *target,int f if (inf2&INF2_TARGET_SELF) return 1; } - //Status changes that prevent traps from triggering
- if (sc && sc->count && skill->get_inf2(su->group->skill_id)&INF2_TRAP) {
- if( sc->data[SC_WZ_SIGHTBLASTER] && sc->data[SC_WZ_SIGHTBLASTER]->val2 > 0 && sc->data[SC_WZ_SIGHTBLASTER]->val4%2 == 0)
- return -1;
+ //Status changes that prevent traps from triggering + if (sc && sc->count && skill->get_inf2(su->group->skill_id)&INF2_TRAP) { + if( sc->data[SC_WZ_SIGHTBLASTER] && sc->data[SC_WZ_SIGHTBLASTER]->val2 > 0 && sc->data[SC_WZ_SIGHTBLASTER]->val4%2 == 0) + return -1; } } break; |