diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-10-20 17:53:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-10-20 17:53:46 +0300 |
commit | 0ee555e83376310a07f086df46a277c21f6aa37d (patch) | |
tree | dbddc2b3f2cc2de42a58c3023ac4ad461160c898 /src/emap/pc.c | |
parent | 9c4e88cfd0687a2e01522c58f932d3f40d468d6b (diff) | |
download | evol-hercules-0ee555e83376310a07f086df46a277c21f6aa37d.tar.gz evol-hercules-0ee555e83376310a07f086df46a277c21f6aa37d.tar.bz2 evol-hercules-0ee555e83376310a07f086df46a277c21f6aa37d.tar.xz evol-hercules-0ee555e83376310a07f086df46a277c21f6aa37d.zip |
Add support for item attribute RequiredSkill.
Diffstat (limited to 'src/emap/pc.c')
-rw-r--r-- | src/emap/pc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/emap/pc.c b/src/emap/pc.c index 152fabe..ae66edd 100644 --- a/src/emap/pc.c +++ b/src/emap/pc.c @@ -285,7 +285,8 @@ int epc_isequip_post(int retVal, struct map_session_data *sd, int *nPtr) sd->battle_status.matk_min < data->requiredMAtkMin || sd->battle_status.matk_max < data->requiredMAtkMax || sd->battle_status.def < data->requiredDef || - sd->battle_status.mdef < data->requiredMDef + sd->battle_status.mdef < data->requiredMDef || + (data->requiredSkill && !pc->checkskill(sd, data->requiredSkill)) ) { return 0; |