summaryrefslogtreecommitdiff
path: root/src/map/status.c
AgeCommit message (Collapse)AuthorFilesLines
2009-07-22Added proper bounds of INT_MIN to INT_MAX for hp/sp when being sent to/from ↵Paradox924X1-4/+4
status_damage/status_heal for negative values because of INT_MAX being (-INT_MIN - 1). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13955 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-28fixed some typos on autobonusInkfish1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13916 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-28* Implemented script command "autobonus". [Inkfish]Inkfish1-46/+6
- "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-20* Changed Asura Strike/Jump Kick to target skill to get rid of the "target ↵Inkfish1-2/+26
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-1/+12
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-17Fixed wings not working when used on top of Magnetic Earth.Inkfish1-1/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13896 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-15Removed the 'src' parameter from skill_delunitgroup() (see r5911) ↵ultramage1-4/+4
(bugreport:3253). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13893 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-15Improving the r13888 crashfix to cover similar crash scenarios discovered:ultramage1-22/+20
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-14Fixed a crash due to group being redeleted when players are performing an ↵Inkfish1-1/+4
ensemble and one of the partner's sp run out. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13888 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-12* Fixed itemskill not bypassing Silence, SteelBody, Berserk and the like. ↵Inkfish1-4/+5
(bugreport:3232) * Fury and Asura no longer disable SP regen on any other classes than Monk/Champion.(bugreport:3200) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13883 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-09Added a check to prevent resetting a mob's hp to full when it levels up ↵ultramage1-1/+2
using the custom mobs_level_up feature (accidentally deleted in r13789) (bugreport:3216). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13871 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-05* Fixed turning off a skill needed to meet the requirements. (bugreport:3175)Inkfish1-3/+4
* 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-3/+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-0/+1
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-0/+4
* 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-02* Fixed Mystical Amplification having unlimited durationPlaytester1-1/+0
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13838 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-29* Added new bonuses bHealPower and bHealPower2. Inkfish1-0/+2
* 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-25Fixed losing skill list after base change. (bugreport:3106)Inkfish1-0/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13812 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-22NPC_STOP now stops both sides and will be canceled if either side teleports ↵Inkfish1-0/+9
or dies.(bugreport:3099) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13803 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-22* The delay icon doesn't appear during casting now. (bugreport:3101)Inkfish1-4/+4
* Status icon of ASPD potions doesn't overriding each other now.(bugreport:3095) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13802 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-20* Now fiberlocking a fiberlocked target doesn't renew the timer but instead ↵Inkfish1-3/+4
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-18* Item-bonuses and NPC skills now use the official default durations for ↵Playtester1-7/+7
status changes - you gain Curse immunity if you have 0 Luk (seems buggy but is official) - our status defense stats are already fully correct :-) - thanks to ultramage for testing this git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13790 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-18status calc code cleanupultramage1-439/+327
* Inverted the status calc code order, so that status_calc_bl optionally invokes status_calc_pc/mob/whatever instead of every status_calc_* calling status_calc_bl. * Inlined functions status_calc_bl_sub_pc, status_calc_bl_sub_hom and status_calc_bl_sub_mer into status_calc_bl. * Restructured status_calc_bl to require as little bl type-specific branching as possible. * Split status_calc_bl into two layers - the inner does the battle status calculations, while the outer deals with running appropriate base status calculations, remembering old values and handling client updates. * The status_calc_bl function is now the single entry-point for all status calculations. * status_calc_bl will now trigger a client update only on attributes that actually changed. * If hp or sp changes during status_calc_bl, it will now properly refresh on the client. * Removed SCB_PC, now SCB_ALL should be used instead. * Revived the unused status calc flag SCB_BASE to indicate that a base status recalculation should be done first (that's what the status_calc_* functions are for). * Defined a new symbolic bitmask SCB_BATTLE (SCB_ALL - SCB_BASE) in case someone needs to only calculate the battle status (currently unused). Please report any issues with this update. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13789 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-15- Fixed a bunch of invalid memory access bugs as reported by Valgrind.skotlex1-24/+13
- 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-15Changed the type of the 'first' parameter of ↵ultramage1-8/+8
status_calc_pc/mob/pet/homunculus/mercenary functions' from integer flag to a simple boolean. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13773 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-15Removed the undocumented custom level feature from monster spawn lines ↵ultramage1-5/+1
(bugreport:3076). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13772 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-12* Removed DEF reduction display when casting GrandCross.Inkfish1-7/+0
- This might not be official and led to repeated calculation. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13758 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-11Fixed Slow Grace decreasing aspd 10x less than it should (bugreport:2480).ultramage1-1/+3
It was a mistake in r12923 where I didn't realize aspd_rate uses a scale of 1000, not 100. This also fixes Slow Grace not factoring in the Dance Lessons bonus (also 10x less than it should be). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13755 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-10* Fixed the incorrect DEF reduction of Joint Beat (bugreport:3051)Inkfish1-5/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13751 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-07* Update Waterball code due to info updatedInkfish1-0/+7
* A piece of GX casttime def reduction code I forgot to merge git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13737 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-07* Fixed splash damage from Baphomet Card might miss. [Inkfish]Inkfish1-0/+2
* Check if group unit is expired before processing it. (bugreport:3054) [Inkfish] * Fixed Grand Corss outdated behavior (bugreport:1590) [Inkfish] - use new damage formula - DEF is reduced to 2/3 during cast time - block shields switching within attack duration - monsters don't damage themselves any more - intervals between hits are 300ms git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13736 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-30Added missing case SC_ONEHAND (from r5227) and case SC_MERC_QUICKEN (from ↵ultramage1-38/+47
r13203) to function status_change_start. Added missing case SC_AURABLADE (from r13693) to function status_change_end. Added symbolic names for all OPT3 values and replaced the OPT1/OPT2/OPT3/OPTION defines with corresponding enums. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13709 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-25* First attempt to fix up the strip skills, please make sure these fixes ↵Playtester1-8/+4
work (bugreport:3011) - the minimum rate of strip skills is now 5% for all levels - duration of strip skills depends on the dex difference between target and caster and can be reduced to 0 - strip skills can now affect bosses (if duration doesn't get reduced to 0 due to their high dex) - strip skills do a fixed -25% ATK, -15% DEF, -40% VIT or -40% INT independant of skill level - autocasting Full Strip has a duration now (if dex is high enough) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13701 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-25Correction to some status icons based on official informationultramage1-11/+27
- Added SI_S_LIFEPOTION and SI_L_LIFEPOTION and their corresponding new status changes to deal with the fact that Small_Life_Potion and Med_Life_Potion each use a different status icon. - Left the duplicate SC_HPREGEN status in fof backwards compatibility, but removed its icon. - Corrected the status icon id for SC_INCCRI from 292 to 295. - Corrected the status icon id for SC_INCHEALRATE from 293 to 292. - Added status icons for SC_INCFLEE2, SC_SPCOST_RATE and SC_COMMONSC_RESIST. - Removed icon from SC_ARMOR_RESIST since officially it is a bonus, not a status, and thus doesn't (and can't) have an icon. - Renamed the status icon name of SC_ELEMENTALCHANGE from SI_ARMOR_RESIST to SI_ARMOR_PROPERTY. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13698 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-24Renamed Happy Break's status name from SC_TKREST to SC_EARTHSCROLL, since ↵ultramage1-3/+3
that's its official purpose and it doesn't do anything else. Also removed the associated SI_TKREST since this status doesn't actually have an icon. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13695 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-24Filled in missing OPT3 change for LK's Aura Blade.ultramage1-4/+9
Added comments for OPT3 values 0x100 and 0x20000, which are currently unused. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13693 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-12* Took care of some warnings. (marionette formulas and *INTPTR_* macros)FlavioJS1-14/+14
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13670 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-24Yet another fix...akrus1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13615 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-24* Added support for new status change packet, uses new setting ↵Sara1-5/+5
display_status_timers in client.conf. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13613 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-18- Implemented new item and bonuses for Kreiger Von Midgard rewards.zephyrus1-1/+12
* Execute script on skill (bonusautoscript3) * Add effect on skill (bAddEffOnSkill) * Execute skill on skill (bAutoSpellOnSkill) - Fixed some boxes Rental time according to item descriptions. - Implemented SC_ITEMSCRIPT, a status that gives you temporally the effect of an item. Check items 14597 to 14605 if you want to get the idea. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13596 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-08* Fixed a couple bugs with marionette controlultramage1-130/+34
- Reduces caster max hp by 1000. - Job and Equipment bonuses counts toward the 99 limit. - Fixed stat overflow on baby targets with stats over 80 (bugreport:2232). - Fixed clowns being able to cast it on another bard/clown (same for gypsy/dancer) (bugreport:166). - Caster is no longer blocked from using items. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13572 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-26- Fixed item Nemesis.zephyrus1-14/+18
- Fixed Tarot Card being used on Emperium. - First Part of BattleGround Implementation (please wait). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13550 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-25- Implemented new Pet Bonus System. Enjoy!! :Dzephyrus1-7/+7
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13491 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-25- Implemented new item bonus scripts required for battlegrounds.zephyrus1-9/+25
- Battlegrounds items rewards for Tierra Valley and Flavius done (but autoscript rate is suggested - 5%). - Restricted trade/storage/drop for those items. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13490 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-24* Changed all uses of struct skill_unit_group* to group_id in ↵FlavioJS1-4/+4
status_change_entry's. (last known 64bit portability issue) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13482 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-22* Changed val4 of SC_BLADESTOP from a block_list pointer to an id. (64bit ↵FlavioJS1-4/+6
portability issue and potential dangling pointer crash) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13471 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-20- Added support for item effect Ignore Def Rate by Race. bonus2 ↵zephyrus1-0/+1
bIgnoreDefRate,<race>,<%>; - Added support for item status effects on skills. bonus3 bAddEff,<sc_effect>,<rate>,ATF_SKILL; - Update to battleground equipment. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13457 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-12Added regen_db to reduce hp/sp processing delays (bugreport:2256).ultramage1-4/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13443 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-10-18* Corrected a target checking problem brought about with Kaizel/Osiris ↵sketchyphoenix1-1/+1
combination. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13308 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-10-12Fixed silly assignment operator mistake in r13281.ultramage1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13285 54d463be-8e91-2dee-dedb-b68131a5f0ec