diff options
author | shennetsind <ind@henn.et> | 2013-05-04 16:00:54 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-05-04 16:00:54 -0300 |
commit | ad9a13be6ef115de1d5e124283a1d63a0bc5cd4d (patch) | |
tree | 71cd5f4e1661bb23f833de3649f74a1f420ee201 /src/map/skill.c | |
parent | c5986ba47dbd5034018ab288c39feee7ff5d7d1f (diff) | |
download | hercules-ad9a13be6ef115de1d5e124283a1d63a0bc5cd4d.tar.gz hercules-ad9a13be6ef115de1d5e124283a1d63a0bc5cd4d.tar.bz2 hercules-ad9a13be6ef115de1d5e124283a1d63a0bc5cd4d.tar.xz hercules-ad9a13be6ef115de1d5e124283a1d63a0bc5cd4d.zip |
Fixed Bug #7210
http://hercules.ws/board/tracker/issue-7210-itemskill-command-does-not-check-for-required-items/
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index c705d1425..a1a8d84bc 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -13208,7 +13208,7 @@ int skill_check_condition_castend(struct map_session_data* sd, uint16 skill_id, break; } - if( sd->skillitem == skill_id ) // Casting finished (Item skill or Hocus-Pocus) + if( sd->state.abra_flag ) // Casting finished (Hocus-Pocus) return 1; if( pc_is90overweight(sd) ) { @@ -13413,8 +13413,8 @@ struct skill_condition skill_get_requirement(struct map_session_data* sd, uint16 if( !sd ) return req; - if( sd->skillitem == skill_id ) - return req; // Item skills and Hocus-Pocus don't have requirements.[Inkfish] + if( sd->state.abra_flag ) + return req; // Hocus-Pocus don't have requirements. sc = &sd->sc; if( !sc->count ) |