summaryrefslogtreecommitdiff
path: root/src/map/skill.c
AgeCommit message (Collapse)AuthorFilesLines
2009-06-28* Implemented script command "autobonus". [Inkfish]Inkfish1-29/+29
- "autobonus" is similar to "bonusautoscript", however it has a timer of its own. - Updated itemdb changing items bonus using "bonusautoscript + sc_start" mode to "autobonus + bonus" mode. - Remove bonusautoscript and status changes that was needed by bonusautoscript and is no longer in use. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13915 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-21Fixed Backstap bypassing battle_check_target.Inkfish1-8/+8
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13902 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-20* Changed Asura Strike/Jump Kick to target skill to get rid of the "target ↵Inkfish1-1/+1
delay". (bugreport:2174) - skill tree will be re-sent on status change to handle using these two skills during combo. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13900 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-19* Implemented script command "areamobuseskill" and skill NPC_INVINCIBLE and ↵Inkfish1-5/+10
NPC_INVINCIBLEOFF. (topic:217330) * Using items no longer cancels invincibility(but using target and ground skills through items does). (bugreport:3259) * Fixed Butterfly Wings not working during GVG. (bugreport:3264) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13897 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-16* Turn Undead shouldn't apply aftercast delay when casted on a "living" ↵Inkfish1-2/+18
entity. (bugreport:1740) * Autocasts should always fail if the target is outside the skill range or an obstacle is in between. (bugreport:3201) * The Lovers should affect the target instead of the caster. (bugreport:3252) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13895 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-15Removed the 'src' parameter from skill_delunitgroup() (see r5911) ↵ultramage1-9/+10
(bugreport:3253). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13893 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-15* Skill through items will not be blocked when 90% overweight. (bugreport:3246)Inkfish1-11/+12
* Now you can drop items when hiding. * Now you can't logout when hiding, cloaking or chase walking. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13892 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-15Improving the r13888 crashfix to cover similar crash scenarios discovered:ultramage1-41/+2
Reordered code in status_change_end(SC_DANCING) so that an ensemble's skill unit group is deleted only after removing both performers' status changes. Modified the call to skill_delunitgroup() IN status_change_end(SC_DANCING) so that it always processes the group's true owner and not others (bugreport:3253). Replaced calls to skill_stop_dancing() with status_change_end(SC_DANCING), since it now provides identical functionality. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13891 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-13* If both Double Attack and critical attack have chance to trigger within ↵Inkfish1-8/+7
one attack, Double Attack takes priority. (bugreport:3231) * Fixed Butterfly Wings not working on maps blocking Teleport. (bugreport:3236) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13886 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-11* Fixed TaTaMiGaEShi(Improvised Defense) not working.Inkfish1-26/+27
* Implemented new cooking success formula. Now cooking experience starts at 0.(bugreport:2439) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13881 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-08Fixed bHPGainValue and bSPGainValue worked on all types of attacks and was ↵Inkfish1-27/+33
only activated on mob's death.(bugreport:3193) [Inkfish] git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13863 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-08* Added a configuration for whether damage of EarthQuake with single target ↵Inkfish1-30/+34
can be reflected. * Fixed Wizard Spirit can block reflected magical damage other than Kaite's.(bugreport:3161) * Fixed Kaite works against bosses.(follow up to r13857) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13860 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-07Magical damage reflection now works against boss monsters and only on target ↵Inkfish1-2/+3
skill(but EarthQuake with one target is an exception).(bugreport:3026, bugreport:2527) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13857 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-07Changed hardcoded "5" to MAX_ARROW_RESOURCE in skill_arrow_create preventing ↵Paradox924X1-1/+1
proper usage. (bugreport:3025) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13855 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-07Implemented "cooking exp" that increases the success chance of cooking by ↵Inkfish1-1/+3
0.05% per try and the max bonus is 20%. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13854 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-05Oops, I messed up the condition on my last commitInkfish1-4/+4
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13845 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-05* Fixed turning off a skill needed to meet the requirements. (bugreport:3175)Inkfish1-60/+80
* Skills used through items not having aftercast delay or cast time now don't overwrite the former canact_tick. (topic:220921) * Multiple autoscripts now can trigger at once. * Applied a temp fix for autoscripts crashing server.(bugreport:3154) * Implemented SC_JEXPBOOST (thanks to GMJobbie for the diff). (bugreport:3177) * Implemented SC_IGNOREDEF. (topic:217330) * SC_DEFRATIOATK won't affect boss monsters. (topic:217330) * Fixed skip_teleport_lv1_menu made lv2 skip menu as well. (bugreport:3183) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13844 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-04* Updates to ST_PRESERVE and a few other minor details!L0ne_W0lf1-1/+7
- Recasting Preserve no longer toggles the skill off while active. - Preserve is no longer saved on log-out or mapserver changes. * Added SC_CRITICALWOUND and SC_SLOWCAST to negative statuses not saved with battle_config.debuff_on_logout&1 * Implemented the skills NPC_HELLPOWER and NPC_WIDEHELLDIGNITY, as per my personal experiences with the skill on iRO. * Increased MAX_MOBSKILLS to 50, as Satan Morroc has over 40 active skills now. * Added skill information for NPC_HELLPOWER and NPC_WIDEHELLDIGNITY, and enabled skills in mob_skill_db. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13843 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-03* Some clean ups on autocast and itemskill code. (see topic:220921 for some ↵Inkfish1-38/+39
info) - Autocasted Teleport now skips the menu. - Fixed nullpo info when defensive autocasts are triggered. (follow up to r13815) - Fixed Warp portal used in item script never worked. - Item skills now bypass skill delay check. - Implemented SM_SELFPROVOKE. - Updated item db using 'itemskill' for some items. * Basic skills will never be reset. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13841 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-03* Implemented the Party Buff cash skills.L0ne_W0lf1-2/+5
* Misc updates, and updates for party buff items. - Added CASH_BLESSING, CASH_INCAGI and CASH_ASSUMPTIO skills. - Added itemskill commands for the party buff scrolls. - Corrected Equipment repair book's itemtype to 11. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13840 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-03Fixed normal casted Teleport always skip menu.Inkfish1-5/+4
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13839 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-02Fixed skills used through items and Hocus-pocus consume requirements if you ↵Inkfish1-54/+52
have them. (bugreport:3164) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13836 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-01Fixed Fiberlock sometimes fails due to the long interval of ↵Inkfish1-19/+31
skill_unit_timer. It may never fail now, though this may not be official. (bugreport:3136) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13834 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-30- Fixed an off-by-one array index in r13815 that caused skills to use SP for ↵brianluau1-1/+1
(SkillLV+1). (bugreport:3152) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13830 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-30* Fixed gemstones are still required when players equipped Mistress Card. ↵Inkfish1-2/+7
(bugreport:3147, follow up to: r13815) * Fiberlock only catches targets the moment its casted. (bugreport:3136) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13829 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-30* Multiple autocasts can go off at a time now. [Inkfish]Inkfish1-3/+3
* Splash damage doesn't get modified by percentual modifier now. [Inkfish] * Monster's Spiral Pierce is again...non-elemental. [Inkfish] git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13827 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-30* Fixed Hocus-pocus always fails. (bugreport:3143, follow up to: r13815)Inkfish1-4/+9
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13826 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-29* Added a new battle flag for telling which skills can have bHealPower effect.Inkfish1-26/+23
* Added documentation for bHealPower. * Fixed some behaviors for healing skills, (thanks to L0ne_W0lf) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13821 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-29* Added new bonuses bHealPower and bHealPower2. Inkfish1-61/+50
* Heal skills code clean up. - bSkillHeal can affect offensive heal now. - bSkillHeal2 can affect AppleIdun and SlimPitcher now. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13820 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-29* Some more fixes to skill condition issues.Inkfish1-22/+44
- Fixed skills fail when MAX_INVENTORY reached. (bugreport:3139) - Fixed spiritballs not being removed correctly in some situation. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13818 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-28Hmm...fixed my last commit making Tarotcard ignore sp requirement.Inkfish1-3/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13817 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-28* Fixed some issues of skill condition check. Inkfish1-15/+18
- HP is now checked at the end of cast. - Lv 6-10 StoneCurse doesn't consume gems. - Tarotcard's after-cast delay will still be applied if it fails. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13816 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-27* skill_check_condition clean up (bugreport:2770, bugreport:2957, ↵Inkfish1-332/+415
bugreport:3010) - Weapon, SP, HP and state are checked at the beginning of cast. - Required items and ammos are checked at the end of cast. - SP and status change required are removed at the end of cast without checking again. - Required items are removed only if the skill is successfully used. - Autocasts won't check for requirements but will remove them if you have them(except for SP/HP). Hope won't cause any problems... git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13815 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-24Fixed crash when attacking while having a bBreakArmorRate item equipped ↵ultramage1-1/+1
(typo in r13800) (bugreport:3121). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13810 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-24Taro Card can now break shoes and garment and won't affect dead target. ↵Inkfish1-2/+9
(bugreport:2513) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13808 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-23Splash attacks do cause additional effects except for autocasts. ↵Inkfish1-5/+2
(bugreport:2661) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13804 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-22NPC_STOP now stops both sides and will be canceled if either side teleports ↵Inkfish1-1/+5
or dies.(bugreport:3099) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13803 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-22Splash attack doesn't cause any status effects or autocasts any ↵Inkfish1-6/+10
more.(bugreport:2661) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13801 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-22* Fixed some behaviors of additional effects (bugreport:3100,bugreport:2661)Inkfish1-41/+85
- Coma can now be blocked by such skills as SafetyWall, Pneuma and Basilica. - Equipment breaking behaves exactly like coma. - Skill's self damage may now causes coma, equipment breaking and autospell/autoscript. - GrandCross now allows you to drain hp/sp. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13800 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-20* Now fiberlocking a fiberlocked target doesn't renew the timer but instead ↵Inkfish1-0/+6
increases its fireweakness [Inkfish] - This makes doublecasting firebolts on a double fiberlocked target having double damage from both 2 bolts possible = =(bugreport:3061) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13799 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-19- Updated NPC_DRAGONFEAR to supposedly behave as it shouldskotlex1-3/+10
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13797 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-19Fixed the three hits of EarthQuake not being calculated seperately.Inkfish1-1/+12
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13794 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-19Fiberlock now can trap multiple enemies on the same cell and its triggering ↵Inkfish1-8/+13
area was reduced to 1x1. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13792 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-17* Eske and Eska now affect friendly guardians and slaves. (bugreport:2131)Inkfish1-5/+9
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13786 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-17* Some fixes to the previous commit (apparently it didn't compile with VS 2008)Playtester1-3/+4
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13785 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-17* Monocell, Instant Death and Class Change will now fail on bosses ↵Playtester1-0/+10
(bugreport:2907) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13783 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-15- Fixed a bunch of invalid memory access bugs as reported by Valgrind.skotlex1-3/+5
- Updated unit_stop_walking to not move character an extra cell when it is already half-way there unless flag 0x4 is passed. (bugreport:3078) - Fixed the monster MD_CASTSENSOR code not correctly setting the monster's aggressive state. - Corrected a few compiler warnings - Changed a bit the code for SC_BOSSMAPINFO so it is not so hideously ugly. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13774 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-14* More logical modifications on skill_additional_effect thing. Thanks to ↵Inkfish1-19/+19
ultramage. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13771 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-13Fixed effects being applied improperly in some rare cases.Inkfish1-0/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13768 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-13PNEUMA, BASILICA and SAFETYWALL no longer protect you from such negative ↵Inkfish1-67/+73
status changes as COMA, STUN, FREEZE and etc. (bugreport:1346) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13767 54d463be-8e91-2dee-dedb-b68131a5f0ec