summaryrefslogtreecommitdiff
path: root/src/map/unit.c
AgeCommit message (Collapse)AuthorFilesLines
2012-11-25Applied AStyle code formating as discussed on tid:74602.greenboxal21-2153/+2075
Removed /SAFESEH option from MSVC11 projects. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16968 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-11-12Fixed bugreport:6719 adjusted SR_GENTLETOUCH_CURE,SR_GENTLETOUCH_CHANGE, and ↵rud0lp201-3/+3
SR_GENTLETOUCH_REVITALIZE required spirit balls. Fixed bugreport:6140 removed unused status icon SI_CLOUDKILL. Fixed bugreport:6829 an animation problem in casting skills. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16921 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-11-12-Upd mob_count to read a 10 modib list to chk if present or notglighta1-2/+4
-Add UNLIMITED_HUMMING implementation, now increase sp requirement and make cast unbreakable -Upd Group dance overlaping A and B, previous chk wasn't ending other properly (if fail was skipping other) -Upd OdinPower effect -Fix Cursed-Circle, shoudn't be able to cast near Emp,Stones bugreport:6457 -Fix Cursed-Circle wasn't remove when caster was being warped -Small docs upd git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16918 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-11-12-Add/upd basic documentation for script.cglighta1-81/+81
-Fix some indentation and strange codestyle change to A-Style git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16915 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-11-12-Add Homon-S skills, 1st implementation (all done except Eleanors)glighta1-0/+1
--Upd Skill conf to set land-limit for homonculus by default (ground skill limit) --Mv MH_HEILIGE_STANGE and MH_ANGRIFFS_MODUS skill from Eleanor to Bayeri -Enforce all zeny transaction to use pc_payzeny and pc_getzeny handlers, (auto log and clif) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16914 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-10-29-Add some src basic documentation.glighta1-16/+15
-Change some remaining -1 for status ending timer. -Move some hardcoded msg in msg_athena -Small optimisation on battle_attr_fix git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16835 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-30Fixed bugreport:6576 changed mvptomb_ to rely on the id rather than the ↵shennetsind1-1/+1
pointer (the tombstone might be unloaded before the monster causing a issue), also removed a unused #define git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16721 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-18Implemented Renewal Casting System.rud0lp201-3/+16
Fixed bugreport:2018 where CH_PALMSTRIKE deals damage to hidden targets. Fixed bugreport:6473, bugreport:6325 SC_DEADLYINFECT should now spread status ailments properly. Fixed bugreport:5541, bugreport:6179, bugreport:6281 where self buff skill is transfer to targets when doing a combo. Updated AC_VULTURE where in renewal it doesn't show the hit bonus anymore in the status window. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16661 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-07Follow up to r16479 fixed a bug where SC_CLOAKING would freeze the character ↵cookiecrumbs1-0/+2
on equipment switch (example: using Frilldora card on a Garment and unequipping). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16596 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-03Fixed bugreport:6401 / Follow up r16562shennetsind1-26/+16
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16565 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-02Fixed bugreport:6099 where warp portal ignores knock back and snap's unit ↵rud0lp201-1/+7
positioning. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16562 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-02- Fixed compile errors from r16560, thanks BuildBot!brianluau1-1/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16561 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-07-28Updated some skills to its RE behavior(AL_ANGELUS, RG_BACKSTAP, ↵rud0lp201-0/+3
WZ_GRAVITATION, NJ_RAIGEKISAI).(bugreport:6342, bugreport:6336, bugreport:6339, bugreport:6331) Added some Kagerou/Oboro skills. Special mega thanks to Judas :) (KO_HUUMARANKA,KO_MEIKYOUSISUI,KO_ZANZOU,KO_KYOUGAKU,KO_JYUSATSU,KO_KAHU_ENTEN,KO_HYOUHU_HUBUKI,KO_KAZEHU_SEIRAN,KO_DOHU_KOUKAI) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16520 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-07-27Fixed bugreport:309 combos may now stack properly. moved all combo ↵shennetsind1-6/+8
processing out of item bonuses and made it's own processing scheme, which is by far more efficient cpu-wise although it requires a little more memory, instead of checking for combo items whenever a status effect is turned on/off it only checks when equipping/un-equipping a item (and on login). Special Thanks to GreenBox, Kenpachi, Skotlex and Trojal git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16508 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-07-23Updated most Ranger skills to its official behavior and damage ↵rud0lp201-7/+6
formula.(bugreport:5272, bugreport:6249, bugreport:5548, bugreport:5888) Fixed issues with traps: (bugreport:5906) - if RA_REASERCHTRAP is learned Alloy Traps can now be used to Hunter traps. - if Hunter traps expire it will now return either Booby Trap or Alloy Trap depending on item used. - some traps should now give full damage to plants. - update list of skills that can hit/damage/affect traps. - damage through skills can now be shown when hitting traps. - proper knock back behaviors - proper animation when triggers and triggering of item bonus script 'bHPDrainRate' Fixed an issues where some skills cannot damage UNT_REVERBERATION/UNT_POEMOFNETHERWORLD and doesn't deal 1 damage Updated some official behavior where informational must shown when hitting, targeting, casting skills to targets. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16483 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-07-23follow up the awesome killer-commit r16479shennetsind1-0/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16480 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-07-23Follow up r16470 adjusted the fix for the longing of freedomshennetsind1-10/+9
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16479 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-07-22Added a new configuration option to allow either weapon switching to cancel ↵cookiecrumbs1-0/+8
SC_DANCING or not. Fixed an issue where movement is frozen (caster) with Longing for Freedom (walking outside of the cast). Added checks related to dancing/ensemble skills to prevent frozen characters. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16470 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-07-17Fixed double decrement with unit_remove_map and the issue that causes ↵cookiecrumbs1-4/+14
dynamic mobs to not spawn when one player is on the map. bugreport:1640 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16434 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-07-13Fixed bugreport:6220 updated SR_SKYNETBLOW behavior to official and damage ↵rud0lp201-7/+7
formula and other Sura skills(SR_TIGERCANNON,SR_FALLENEMPIRE,SR_GATEOFHELL,SR_WINDMILL,SR_RIDEINLIGHTING,SR_LIGHTNINGWALK) and more to come...:D git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16424 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-07-05Implemented Renewal ASPD formula(bugreport:5644)rud0lp201-3/+4
- all suggestions/contributions/comments regarding RE ASPD ATM will be entertained in [tid:63256] Fixed bugreport:6176 where WM_LULLABY_DEEPSLEEP doesn't target all party and guild members. Temporarily disable the official walk path until the right algorithm is formulated. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16378 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-07-04Fixed a couple compiling warningsshennetsind1-8/+6
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16375 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-07-03r16370 has fixed a behavior in *athena that has always made walking ↵shennetsind1-4/+7
easier/smoother, unlike how it actually is meant to be, however since users have been exposed to this behavior for so many years I'm adding a config to disable it in order to save endless posts/bug reports on a intended feature. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16372 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-07-03Fixed bugreport:6156 HT_REMOVETRAP must show a skill fail message when it fails.rud0lp201-1/+4
Fixed bugreport:4160 after casting skills it should now check for the path if it is ok to execute same as official behavior. Fixed bugreport:5830 now caster should not hit/chase target between an obstacle same as official behavior. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16370 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-06-28Fixed bugreport:6127 remove the double duration bonus from GC_RESEARCHEWPOISONrud0lp201-0/+1
Fixed bugreport:6109 GN_CARTBOOST should now give atk bonus and fixed some genetic skills damage ratio and behavior Fixed bugreport:6121 Rolling cutter's counter should now only be removed by walking and Cross Ripper Slasher Fixed bugreport:6100 Cart should now can't be removed when character dies git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16353 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-06-23Fixed bugreport:6095 Spider Web has been removed from the SCS condition ↵shennetsind1-1/+1
system as its data cannot be cached (requires real-time check) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16331 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-06-21Follow up r16327 missing null pointer check on mercenary data. greenboxal21-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16328 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-06-21Fixed bugreport:6044 mercenaries should warp after being far from the master ↵greenboxal21-5/+35
after 3 seconds. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16327 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-06-18Little optimization on MVP tombstone system, maybe fix insane CPU usage ↵greenboxal21-1/+1
spikes(bugreport:5968). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16318 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-06-14Fixed bugreport:5954 SC_SHADOWFORM Can now be canceled with detecting skills ↵rud0lp201-1/+1
which is check in every 2 seconds. Fixed bugreport:6010 AB_EXPIATIO now give a piercing damage bonus. Fixed Diamond/Crystallize status to work only to non mob target and its official behavior(bugreport:5893) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16296 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-06-11Fixed bugreport:5963 AB_CHEAL should now work properly on immune ↵rud0lp201-2/+6
targets(Mado, berserk, shield of deaf). Fixed bugreport:5981 PA_SACRIFICE now won't be granted by bonus damage from cards(RENEWAL CHANGE). Fixed bugreport:5892 & bugreport:5900 SO_SPELLFIST is now working properly. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16268 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-06-07Fixed bug to lion howling/sc_fear status, super mega ultra ubber plus thanks ↵shennetsind1-1/+1
to the awesome malufett git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16238 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-06-04Fixed bugreport:5919 RK_ENCHANTBLADE bonus damage at any level should now ↵rud0lp201-12/+0
work properly. Fixed bugreport:5914 SC_MANHOLE duration at level 2 is now 10 seconds. Fixed bugreport:5928 SR_CURSEDCIRCLE should now work properly(castable with other skills & should end after the execution of a skill) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16233 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-06-01performance improvement initial commit for status change state ↵shennetsind1-33/+3
functionality, this first commit covers status that makes you unable to move. -- this cache the status changes into states saving dozens of checks whenever a unit moves/per cell. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16209 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-05-31Fixed bugreport:5835 vendings are no longer broken when character moves map ↵shennetsind1-1/+0
or is recalled by a gm. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16181 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-05-20Fixed bugreport:5619 MO_EXTREMITYFIST should now consume all spirit sphere.rud0lp201-0/+7
Fixed bugreport:5632 SR_FALLENEMPIRE should now chain with SR_GATEOFHELL and SR_TIGERCANNON and add bonus damage. Update SR_GATEOFHELL damage formula where sp has now contribution with the damage. Fixed wrong displayed status mdef. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16131 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-05-03* Replaced some literals with enum values.xazax-hun1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16074 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-05-02Fixed bugreport:5484 Cursed Circle caster can no longer move while in the ↵shennetsind1-1/+2
effect (but if he casts any skill it cancels his state and his targets' one). Cursed Circle caster is no longer to attack nearby units either, Also fixed a bug in manhole that allowed trapped character to attack nearby units. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16041 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-05-02Fixed bugreport:5502 Fixed bug with character moving to attack target ↵shennetsind1-33/+15
(normal attack) and stopping at attackable range without attacking (bow-bug only). apparently the client doesn't care if its a bow anymore. also applied some of my curly brace love. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16034 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-04-29- Updated the unit engine to cache attacker count rather than utilise CPU ↵epoque111-34/+45
intensive block iterations - This update removes two unofficial settings, nothing that will go amiss git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16011 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-04-25* Code consistency updates. No functional changes. Credits to Lighta.xazax-hun1-7/+7
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15974 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-04-25Fixed bugreport:5624 Thorn Trap 'immobilization' effect should now be ↵shennetsind1-0/+1
working properly. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15970 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-04-24Fixed memory leak on MvP tomb system, killer name now uses static buffer. ↵greenboxal21-0/+2
(bugreport:5615) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15954 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-04-22- Fixed Vacuum Extreme not assigning units (bugreport:5604) and additionally ↵epoque111-0/+1
not preventing movement - Added missing units from pre-renewal skill_unit_db.txt git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15919 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-04-21- Fixed Spell Fist being unable to cast while casting a bolt skill ↵epoque111-1/+2
(bugreport:5597) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15909 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-04-21Fixed bugreport:5586 SC_CAMOUFLAGE can be removed by using RA_CAMOUFLAGE ↵greenboxal21-2/+2
again, also portals won't warp players under this status. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15902 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-04-21Fixed bugreport:5593 elemental bl was not removed when pc is removed/freed.greenboxal21-0/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15899 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-04-20Initial support for Genetic, Sorcerer and Elemental Summons. Special Thanks ↵shennetsind1-130/+157
to 3CeAM for the base. Notice this revision onwards requires you to update your char sql table and add the elemental sql table (check sql-files/upgrade_svn15885_log.sql) If you step by any bugs, let us know at http://rathena.org/board/tracker/ Thank you very much. ARRIBA ARRIBA. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15885 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-04-11yet another minor performance improvement. walking mobs no longer waste ↵shennetsind1-1/+1
bandwidth by sending clif_move to nearby players if they haven't been damaged recently. (bandwidth&process time saver <3) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15857 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-22Fixed the damn broken combo code. Fixed Fallen Empire and Dragon Combo (part ↵shennetsind1-1/+1
of bugreport:5358) and applied some more of my curly brace love. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15758 54d463be-8e91-2dee-dedb-b68131a5f0ec