summaryrefslogtreecommitdiff
path: root/src/map/skill.c
AgeCommit message (Collapse)AuthorFilesLines
2006-09-11- Summoned and slave mobs won't show up on @showmobs anymore.skotlex1-13/+16
- Moved Spider Web damage bonus from battle_calc_damage to battle_attr_fix, so that damage will be doubled based on the actual attack element. - Adjusted autospell cards to trigger only on physical weapon attacks. - Adjusted a bit the heal code, it should now show either the full heal amount, or 0, depending on whether the target was healed at all or not (this also means it shows 0 if you try to heal a full-life character.. but it's the closest I've gotten to make it display 0 on Berserked chars) - Memorize will be consumed even on instant cast spells now. - Berserk will end now if hit and remaining hp is less or equal to 100. - Guild Aura will be removed on sc-load to prevent Guild Masters from getting that bonus from the old implementation. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8705 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-09- Moved perfect_hiding from state to special_state, so that it clears out ↵skotlex1-3/+7
when you remove your pet. - Probably fixed the Taekwon Rest skills. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8687 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-08- Unified the rest and ganstar paradise code into a single function.skotlex1-86/+52
- Moved the Happy State trigger to the regen function, it now triggers at the same time the SPTIME does. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8681 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-08- Cleaned up SG_HATE to use a new function, pc_set_hate_mob to handle setting.skotlex1-44/+2
- Updated pc_authok to initialize all mob_hate vars to -1 - Updated clif_hate_mob to receive the hate-type instead of skill-lv. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8680 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-07- Changed the default of sg_angel_skill_ratio to 10 based on recent ↵skotlex1-2/+3
information from Tharis. - Cleaned up the doridori parse clif function. - Moved doridori_counter to state.doridori - Merged some of mpeg's work on NJ skills git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8665 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-07- Removed the Warmth "stacking" code.skotlex1-13/+20
- Added back the effect of /doridori to skill-SP regen - Implemented a rough version of Angel of the Sun/Moon/Stars, it has a low chance of triggering on doridori-boosted SP-regen events. - Added sg_angel_skill_ratio to specify rate at which the Angel skill triggers. - Added unit_cancel_combo which takes care of ending a combo time and resuming normal attack 'inmediately' - Cleaned up some the SG_HATE code, you can't change hate targets anymore. - Increased duration of Miracle of the Sun/Moon/Stars to one hour. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8664 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-05- Fixed dispell removing SC_NOCHATskotlex1-0/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8635 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-05- Small fix which should correct skill_attack damaging hidden characters ↵skotlex1-1/+2
when it shouldn't. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8633 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-05- Fixed crash when using Adaptation during an Encore.skotlex1-5/+5
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8627 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-01- Soul Breaker will now be affected by Lex Aeterna on both parts of the attack.skotlex1-22/+14
- Some minor code cleanups - Cleaned Adaptation's code to not require to check the Skill Unit group structure to extract the skill lv info. - Status changes with no skill and no SCB* data will now go through if they have an SI* icon. This should fix SC_MIRACLE - Reverted switching a mob's adelay/amotion when the later is longer than the former, now both get updated to amotion. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8574 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-31- Moved the intimacy penalty of HFLI_SBR44 and HVAN_EXPLOSION to ↵skotlex1-28/+16
skill_counter_additional_effect - Simplified skillnotok_hom by using an invocation to skillnotok - Hopefully fixed BD_ADAPTATION - Homun won't lose any intimacy on death now. - Homun will be saved together with the master now (as long as the homun is active) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8564 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-31- Skill required-state will now only be checked on cast-begin, not cast-end.skotlex1-4/+2
- Added a check in status_calc_pc to prevent player rate adjustments from from going below 0. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8553 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-30- Removed sending normal-damage packets instead of skill packets for ↵skotlex1-0/+4
splash-damaged skills, since... well, that's how Aegis does it. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8548 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-30- Updated HLIF_CHANGE to work as explained by Tharis -> It now adds 30*lv ↵skotlex1-1/+10
vit and 20*lv int, is dispelled on warp, and can-act delay is 5+5*lv minutes. Hp/Sp is no longer set to 10 after a forced expiration. - Added instant skill unblock in skill_[merc/pc]block_start when the duration passed is less than 1. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8547 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-29- Applied Mpeg's work on GStoms1-17/+59
( http://gpegon.free.fr/ea/gunslinger_08-29-06_mpeg.txt ) - Fixed a syntax error in @showmobs git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8528 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-28- Restructured CG_MOONLIT so that it is a ground effect like the other Encores.skotlex1-61/+14
- Modified SC_DANCING so that val1 can contain both skill id and skill lv, removed SC_MOONLIT git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8526 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-28- Changed the produce_db format, now there's a skill-lv column right after ↵skotlex1-4/+6
the skill-id column to specify required skill-level to craft this item. - Modified the skill produce_db code to take into account the new skill-lv requirement. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8523 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-28reverted mpeg's workVicious1-66/+20
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8522 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-28- Fixed exp bonuses applying twice for the job-expskotlex1-3/+3
- Magic damage adjustment per number of hits is now performed before mdef reductions. - @reloadbattleconf will now also update the ragsrvinfo table on the char-server. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8518 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-28Applied Mpeg's work on GS ( ↵toms1-20/+66
http://gpegon.free.fr/ea/gunslinger_08-28-06_mpeg.txt ) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8513 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-27* Optional macro MEMSET_TURBO for faster low-level memory initializations.Lance1-20/+20
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8499 54d463be-8e91-2dee-dedb-b68131a5f0ec
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