summaryrefslogtreecommitdiff
path: root/src/map/skill.c
AgeCommit message (Collapse)AuthorFilesLines
2006-08-25- Cleaned some the skill unit removal added flag so that it signals whether ↵skotlex1-9/+10
the skill is being force-removed, or it has "naturally expired". git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8484 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-25- The following skills will display a normal attack animation now:skotlex1-2/+13
NPC_WATERATTACK, NPC_GROUNDATTACK, NPC_FIREATTACK, NPC_WINDATTACK, NPC_POISONATTACK, NPC_HOLYATTACK, NPC_DARKNESSATTACK, NPC_TELEKINESISATTACK, NPC_SPLASHATTACK - Skills that require a weapon and consume spirit spheres will no longer be auto-tagged to require ammo. - Now MISC skills with delay 0 will also use the attack delay (if the skill is tagged to do damage) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8483 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-25Added a flag to skill_delunitgroup, skill_delunit & skill_unit_onlimit.toms1-30/+31
If 1 is passed, it will avoid UNT_WARP_ACTIVE to be transformed in UNT_WARP_WAITING and will destroy it. [Toms] ( To avoid such crash : http://www.eathena.ws/board/index.php?showtopic=114102 when the code need an empty slot and the oldest one is UNT_WARP_ACTIVE ) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8478 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-24- Cleanup/typo on homunc's codetoms1-9/+1
- Modified @reloadmobdb & @reloadskilldb to reload homunc's db too git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8476 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-24- script command "isrefine" will no longer return always false for equip ↵skotlex1-2/+4
positions above 6 (this has not been needed since the addition of the refine column to tbe item_db many months ago) - Added NPC_CRITICALSLASH to the list of skills that display as a normal attack. - Changed the default of clear_skills_on_death to 0 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8473 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-24- Reverted the previous change, changed the pet capture code to try to ↵skotlex1-1/+1
capture a mob based on their view class rather than actual class. - Changed various instances of md->db->lv for md->level, since the later is the actual mob level. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8471 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-24- Added setting clear_skills_on_warp to specify when a character's ↵skotlex1-5/+11
land-based skills are deleted when the caster changes maps. Defaults to all types. - Should have fixed Brandish Spear not passing the flag to skill_attack, causing it to do miserable damage. - Warp Portal will no longer be removed when caster steps through it (this is left to the new clear_skills_on_warp setting) - Cleaned up status_percent_change to switch equations when the target has high hp to prevent overflows, also it will directly take hp/maxhp when a rate of 100 or higher is passed to prevent calculations. - Traps and Land Elemental fields are no longer automatically removed on map change (handled now by clear_skills_on_warp) - traps_setting &2 no longer does anything (handled now by blah blah) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8469 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-23- Some minor cleanups.skotlex1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8455 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-23- Fixed HVAN_EXPLOSION (What did I fixed? either it doing no damage, or it ↵skotlex1-12/+11
giving no exp to the caster, whichever bug was there) - Frost Nova won't display a nodamage skill packet (still need to sort out a way to fix the splash damaged packets) - Some cleaning on the timeout code for traps. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8453 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-23- Adjusted skill_attack_area so that skill_area_temp[1] holds the ID of the ↵skotlex1-6/+13
target, this way the skill animation will correctly display for the targetted mob, and not the others who get caught in the splash area. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8447 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-22Fixed gcc warningtoms1-0/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8443 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-22Fixed AM_REST not closing the homunc status windowtoms1-3/+6
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8442 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-22- Some corrections to make Tatami Gaeshi work correctly.skotlex1-8/+12
- Fixed SBR44 doing 100% more damage than it should. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8437 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-22- Some more work on the splash skill code. Now splash-damaged enemies should ↵skotlex1-42/+36
show no animation at all, just the damage-number, while only the targetted character should still display the full skill animation. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8436 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-22- getnameditem will now also work on stackable itemsskotlex1-2/+4
- Corrected battle_calc_weapon_attack so that all skills ignore your left-hand weapon, and that the Katar's double-attack damage bonus for the offhand damage applies ONLY on normal attacks. - Fixed Resurrect Homunculus's % to 20*lv% git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8426 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-22- Some more cleaning up of the splash skill code. Now the passed hit value ↵skotlex1-28/+5
for the splash targetted mobs is 9 instead of 5, this allows multi-hitting splash skills to display the number of hits correctly. - Also merged Blitz Beat to the rest of the splash code. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8415 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-21- Some cleaning of the splash skills. Updated skill-attack to enable again ↵skotlex1-105/+88
passing of flag 0xF000 which signals that the skill level sent to the client should be -1 (no skill name shouted). Should (hopefully) clear/clean up a bunch of splash damage skill animation-related packets. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8412 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-21Fixed AM_RESURRECTION, thanks to RockmanEXE for %HP valuestoms1-2/+8
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8409 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-21Fixed HAMI_CASTLE, HAMI_DEFENCE & HLIF_AVOIDtoms1-2/+7
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8408 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-21- Adjusted Glittering's success rate to 20+10*lv%skotlex1-4/+4
- Corrected isequipped() so that cards will not be tagged as "used up" unless all the specified items were found. - Fixed a confusion in skill_attack using the src instead of dsrc for some calls, which was causing some problems with the KAITE check from AoE spells. - Fixed ASC_BREAKER's misc damage part not having the ignore-element flag set. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8406 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-21- Added BL_HOM handling to battle_gettarget.skotlex1-46/+27
- Some cleaning in skill.c in regard to homun skills. - Madness Canceller now stacks with other aspd bonuses, just like Berserk does. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8403 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-21- Removed config setting "muting_players", and expanded the manner_system ↵skotlex1-5/+6
config to specify how having negative manner (mute) affects a player (see battle/misc.conf). - Expanded the pk_mode setting from no/yes to 0/1/2. 1 is normal pk_mode, if 2 is used, it makes killing players give you a loss of 5 manner points. - Fixed WS_WEAPONREFINE always failing when at less than job 50. - Fixed a compilation warning in char-txt/int_homun.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8402 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-20- Added clif_skill_fail for homunc to skill_castend_id & skill_castend_pos ↵toms1-4/+13
('skill has failed' will may be appear 2 times) - Fixed homunc skill 8016 not considered as homunc skill git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8386 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-20- @useskill will now cause your homun to use the skill instead of you if the ↵skotlex1-3/+1
skill is a Homun skill and you have an active homunculus. - Some cleanups... git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8383 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-20- Reduced the Success Chance of GS_FLING to 10+10*lv% (Playtester told me ↵skotlex1-2/+2
that Vicious told him the chance was much lower like that) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8379 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-19- Fixed @homlvup bug toms1-0/+14
- Fixed AM_REST & AM_RESU consumming SP if they fail - Fixed homunc spawning bug git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8375 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-19- Fixed GS_GROUNDDRIFTskotlex1-1/+5
- Increased chance of GS_DESPERADO connecting to 20% git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8373 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-19Fixed HAMI_CASTLEtoms1-2/+13
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8366 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-19- Updated NJ_BAKUENRYU skill treetoms1-2/+0
- Fixed HLIF_CHANGE skill git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8365 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-19Some compilation warnings fixedtoms1-1/+0
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8360 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-19- Added skill's required item check on homunc skillstoms1-7/+41
- Add Condensed Red Potion as a required item for HLIF_HEAL git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8359 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-18Little code cleanup on last fixtoms1-9/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8356 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-18- Fixed HLIF_HEAL healing the homunc instead of the mastertoms1-1/+5
- Fixed HLIF_AVOID not increasing walk speed of master git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8355 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-18- Fixed a sad crash in the login-txt server. Thanks to Flavio JS for ↵skotlex1-1/+1
pointing it out. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8352 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-18- Figured out a better way to make TATAMIGAESHI attack only on the instant ↵skotlex1-14/+8
it is placed down. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8350 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-18- Made HLIF_HEAL a self skill that auto-selects target to caster's master.skotlex1-10/+8
- Implemented SC_BLOODLUST and SC_CHANGE, cleaned up HLIF_CHANGE - Applied a correction to HVAN_EXPLOSION - Fixed Homun ASPD calculation being able to underflow and give you min speed. - Added monster_ai&128 to make aggressive mobs ignore that behaviour of always picking Homun targets above player targets regardless of who is closer. - Fixed homun info packet being unable to display HP/SP correctly once the values are above 32k. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8349 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-18Applied Mpeg's work on ninja (http://gpegon.free.fr/ea/ninja_08-18-06_mpeg.txt)toms1-2/+15
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8347 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-18- Reverted the battle_config regen settings from unsigned int to signed int. ↵skotlex1-2/+0
The battle config reading code can only handle two types of settings: signed ints and unsigned shorts, you'd have to mess up with it if you want to add more types. - Removed the delayed start effect of Gospel from the code since it should take effect as soon as it's placed down. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8343 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-18- Added guild_aura (skill.conf) setting so you can specify when it works and ↵skotlex1-0/+4
if it works on the guild-master itself. Defaults to working all the time on everyone except GM. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8342 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-18- Little code cleanuptoms1-3/+0
- Cleaned merc_hom_evolution to avoid free'ing/realloc'ing - Fixed "args of aFree is freed pointer" on Homunc deletion git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8341 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-18- Applied use of structure regen_data for a unified regen module. Natural ↵skotlex1-1/+1
and skill-heal is handled by this structure, while sitting-skill-heal is still player dependant (mostly because the other object types can't sit) - Added SCB_REGEN constant to identify status changes which alter regeneration - Modified SC_REGENERATION so that if val4 is set, the status actually blocks regen rather than increase it, this is what now Frenzy uses instead of "canregen_tick" - Cleaned up the status calc code for homun by moving it from status_calc_bl_sub_homun to status_calc_homun (where it should had always been) - Moved the Fleet watk code to status_calc_watk where it belongs. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8334 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-16- Cleaned up skill_get_range2 so that using range 0 for non-self skills uses ↵skotlex1-12/+3
the caster's attack range. - Fixed AM_CALLHOMUN checking for an embryo when you have a vaporized homun. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8322 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-16- Spirit of Wizard will now consume an item 7321 each time it blocks ↵skotlex1-2/+5
reflected magic. - Added script command jobname, retrieves a given's class name as per the appropiate msg_athena.txt entry (this command should had been added years ago) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8320 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-16- @produce now can make any kind of equipmentskotlex1-2/+9
- Fixed a warning on the mob_ai - Made HLIF_AVOID and HAMI_DEFENCE cause the status change on both caster and target. - AM_REST shouldn't be checking for a range now (since it's a self skill) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8318 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-16- Now arrow-consuming skills where your main weapon is a whip or musical ↵skotlex1-1/+1
instrument WILL count as arrow-type attacks, using the atk of the arrow and all related bonuses. - Fixed some homun timer initialization code. - Some cleanups on the pet.c code, but no idea if pet view will work correctly now. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8315 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-15- Some cleanup of int_homun.cskotlex1-2/+1
- Added homun saving/loading support to char-TXT. Note that this is completely untested, so it may be as good as broken. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8299 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-15- Updated the char save structure for char-TXT servers so that the homun id ↵skotlex1-2/+2
will be saved, now also the map info (last point, save point, memo maps) are now saved using the mapindex rather than the string. BACKUP BEFORE UPDATING since this code isn't yet tested. - Cleaned up a bit the char-saving code, added overflow crash prevention in case there are more memos than the max-allowed saved. - AM_CALLHOMUN can now be used to recall vaporized homuns. - AM_RESURRECTHOMUN will now fail when the homun is vaporized. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8295 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-15- Asura Strike now moves you to the target on fail always (unless the target ↵skotlex1-43/+32
does not exists or is in another map or there's a obstacle on the way) - Corrected skill_attack_area hitting dead characters on it's splash range. - Swapped the values for OPTION_XMAS and OPTION_FLYING. This should enable SG to show the fly animation again, even if sometimes others will see him as Santa. As for xmas cloth, it shouldn't make much of a difference since the view class is changed to christmas anyway. - Moved the AM_CALLHOMUN code from castend_id to castend_pos. - Made AM_CALLHOMUN and AM_RESURRECTHOMUN be like the wedding skills, where they automatically pick a spot around you. - Cleaned up some the AM_RESURRECTHOMUN code. Hopefully it works now. - Cleaned up some the hom evolution code. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8292 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-14- Sacrifice no longer shows damage to self.skotlex1-27/+15
- When Asura fails, the skill display will still come off. - Cleaned up AM_CALLHOMUN so that the required item is specified on skill_require_db - Cleaned up function merc_call_homun and added function merc_hom_vaporize to handle the respective cases. - Cleaned up a bit unit_remove_map/unit_free on regards to homun. it will display the /sob emotion when the homun dies due to low intimacy. Moved removal of timers and all that to unit_free - Cleaned up function merc_hom_dead - Simplified lots of code around by using the new merc functions. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8279 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-14- Some cleaning of skillnotokskotlex1-19/+17
- Corrected emergency_call setting to not use map_flag_gvg define, since the setting already has woe on/off restriction bits. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8276 54d463be-8e91-2dee-dedb-b68131a5f0ec