summaryrefslogtreecommitdiff
path: root/src/map/skill.c
AgeCommit message (Collapse)AuthorFilesLines
2006-08-02- Fixed NPC_SELFDESTRUCTION damaging yourself, causing the source to be ↵skotlex1-2/+7
knocked back, as well as making others in the splash damage not receive any damage if they are hurt after the caster. - Fixed NPC_RUN not setting the mob's state to MSS_WALK (normally not set by the mob ai) - unit_walktoxy flag&2 setting will now also ignore unit_can_move, for a forced walk. - Adjusted NPC_RUN level of Marine Spheres (5->7 cells) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8044 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-01- Made Deluge/volcano/v. gale be castable on top of each other againskotlex1-34/+47
- Modified unit_walktoxy and NPC_RUN to enable running even when the caster does not has the MD_CANMOVE bit on. - PF_MINDBREAKER will now silently fail if you try to use it on someone who already has the status active. - Cleaned up yet again skill_landprotector, now new cells of Deluge/Volcano/V.Gale will delete previous cells when they are recasted on top of each other. - Summoned Marine Spheres no longer get the MD_CANMOVE bit. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8039 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-01- Should have fixed the cooking sets not displaying all cooking available items.skotlex1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8036 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-01- Figured out and fixed the issue with Volcano/Deluge/Violent Gale not ↵skotlex1-2/+1
really working. Thanks to Mpeg for noting it out. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8034 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-01- Modified Self Destruction, so that Marine Spheres in non-versus maps will ↵skotlex1-1/+4
hurt only enemies, while in all other situations this skill will hurt everyone around them. - Expanded setting debuff_on_logout so that &1 removes negative buffs and &2 removes positive buffs. - Food status boosts will no longer end on death, but they will end when you respawn or logout. - Added battle config file status.conf, moved some settings from skill.conf and battle.conf to it since they are entirely Status-Change related. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8033 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-01- Added the missing lines to enable script command "kickwaitingroomall"skotlex1-3/+6
- Magic Rod's can-act delay will no longer be applied when you absorb a spell. - Fixed Don't Forget Me increase speed instead of decreasing it. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8031 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-01- Updated Poison React chance to counter and number of counters as per skill ↵skotlex1-1/+1
description updates. - Fixed Sharpshooting being counted as a magic attack, and hence, using your MATK as base damage. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8019 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-01- Fixed NPC_STOP id value in skill_cast_dbskotlex1-3/+4
- Bladestop will no longer stop when you push either of the characters around. - Fixed Enchant Poison having a near 100% chance of poisoning target on attack. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8015 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-31Merged mpeg's fix on ninja skillstoms1-2/+11
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8012 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-31- Removed incorrect "Waterball range+1 when standing on suiton" feature.skotlex1-2/+0
- Corrected the Speed update code to prevent sending "walk to xy" packets twice when the affected character is a player. - Expanded mob can't move warning to print out where this mob was stuck at (map, x,y) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7998 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-31- NPC_INVISIBLE will now use Cloaking of a level +9 of the used skill level, ↵skotlex1-2/+3
so that at level 1 they can attack, use skills and receive no walking penalty. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7989 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-30- Mob casted Sanctuary will no longer always heal it's targets regardless of ↵skotlex1-3/+2
element/race - Status change packets will now use as criteria for sending the actual view_class instead of player/not-player. This will fix status-changes displaying improperly on clones, and also possible crashes with disguised players. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7984 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-30Merged mpeg's fix on ninja skills and SA_VOLCANO,SA_DELUGE,SA_VIOLENTGALEtoms1-3/+19
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7983 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-30GS Skill updates/fixesVicious1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7979 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-29- Made the SQL ping interval default to 7 hours.skotlex1-0/+5
- Memorize cast time now can't be reduced by status changes neither. - Made skill_unitsetting remove the group when no unit-cells were placed down. basicly this means that if landprotector blocks all tiles, the group will be removed from memory, preventing said group from counting to the total number of skills you can set. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7972 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-29- offensive heal/sanctuary will only happen when the source of the heal is a ↵skotlex1-326/+266
player, mob/pet casted heal will now always heal regardless of target. - Shield Chain will now ignore the 'ice-pick' defense piercing bonus. - Removed pretty much every comment from skill.c as they were not even in ex-japanese, but they are now in butchered ex-japanese. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7958 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-28- Some cleaning in the order of cases in castend damage id.skotlex1-13/+10
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7953 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-28- Self destruction will now hit all characters in range, not just enemies.skotlex1-1/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7950 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-28- Cleaned up the NJ update code.skotlex1-105/+22
- Restored code which was removed (stuff like SC_SKA) - Fixed possible crashes on some NJ skills if used by non-players. - Fixed most NJ magic spells doing more damage than they should. - Fixed ZenyNage being able to do more damage than zeny you have. - Cleaned up skill setting code for Suiton and Kaensin - Ordered SC_* definitions in status.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7947 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-28- Some cleaning of battle_drain, Evil Druid card should work now.skotlex1-4/+2
- Made status_damage allow damaging of objects not on a map, this should fix pet-catching making the mob never respawn again. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7946 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-28Fixed : - "uninitialized local variable 'i' used" in skill.ctoms1-8/+6
- "warning: suggest explicit braces to avoid ambiguous `else'" in battle.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7943 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-28Fixed duplicate case value on NJ_SUITONtoms1-1/+0
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7937 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-28Commiting mpeg's NJ work(from jA). some things might have gotten ↵Vicious1-15/+108
reversed/broken, so please do check, and don't kill me! D: thread: http://www.eathena.ws/board/index.php?showtopic=105413&view=findpost&p=610877 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7936 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27- Added config setting party_update_interval so you can specify how often ↵skotlex1-100/+75
the party-mate minidots should be updated (defaults to 1 sec). - Removed a bunch of broken comments in skill.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7929 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27- Now when you set the guardian's HP, if the guardian is spawned, it's HP ↵skotlex1-3/+2
will be updated accordingly (and if you set it to 0, the guardian is killed) - Added functions status_set_hp/status_set_sp to set hp/sp to a given value. Applied usage of these on the Berserk and Soul Change code. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7922 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27- Readded the check which prevents Cloaking from activating when your ↵skotlex1-1/+1
learned level is less than 3 and you aren't next to a wall. - Some cleanups to the Frenzy/Berserk status change, it should probably work correctly now. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7917 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27* Fix homunc & code cleanup [Toms] toms1-33/+31
- Timer problems on delete_timer - Intimacy problem (overflow & new values) - Homunc deleted if intimacy < 0 - base exp is now given to master - Homunc sometimes not saved git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7913 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-26- Enabled changing of equipment while stunned/asleep/petrified/etcskotlex1-2/+2
- Cleaned up a bit the skill_castend_id dead checks. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7890 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-25- Cleaned up the skill_landprotector function to correctly block only magic ↵skotlex1-12/+15
skills from being placed on land protectors. - Corrected itemdb_group so that it will not return the random item givers (should give priority to actual item groups, so that the item heal bonuses work correctly) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7867 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-24- Cleaned up the Mistress Card related code so that the no-gemstone bonus ↵skotlex1-20/+13
reduces item requirements by one rather than totally skip them. - Cleaned up the logs "can log"function to use the IT constants. Also corrected the "only log large amounts" setting not working on negative values (trades). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7863 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-24- Adjusted skill_castfix_sc so that Suffragium will get consumed even on ↵skotlex1-4/+6
instant cast skills, but Memorize won't. - Adjusted map_countoncell to receive the BL_* defines currently used instead of 0 to signal all. - BladeStop will now end when either of the characters is moved (knocked out?) around. - Moved the Zeny penalty code from respawn to pc_dead. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7859 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-24- Added a check to prevent Deluge/Volcano/Violent Gale from being placed on ↵skotlex1-2/+16
top of each other. Reverted the previous 'fix' where atk was being increased based on armor element rather than element of attack. - Added flag 0x002 (no reiteration) to Deluge/Volcano/Violent Gale (skill_unit_db) - Removed the noreturn mapflag check from script command warp. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7858 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-24- Changed Land Protector's range back to 3.skotlex1-58/+39
- fixed unban unblocking players as well. - Fixed Volcano/Deluge/Violent Gale increasing damage based on element of attack instead of defense element of attacker. - Cleaned up the code of Magic Rod, fixed it not giving SP. - Moved the code of Hermod and Basilica to castend_pos2 so it should work now. - Modified the code of Ankle Snare so the status ends on unit's time-limit rather than when the snared object moves away. - Re-worded the water check of ST_WATER skills. - Allowed sc-cast reductions to be processed even when cast-time is instant (to let suffragium end even on instant-cast skills) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7855 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-23- Modified setting skillrange_by_weapon (skill.conf) to be a per-object-type ↵skotlex1-1/+1
setting instead of yes/no. The default now is that weapon-based skills will take the attacker's range for non-players. - Changed the default of skillrange_by_distance to include homunculus. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7844 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-22- Applied use of EQI/EQP constants to the strip skills code.skotlex1-6/+6
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7831 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-22- Applied Toms's suggested corrections to homun code.skotlex1-1/+1
- Corrected Cannibalize/Marine Sphere ignoring the selected summon spot. - Fixed looting pets ignoring the item pick-up priority of other players. - Should have fixed a signess warning in login txt. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7828 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-21- Corrected the @follow timer not being deleted on logout.skotlex1-0/+1
- Applied the homunculus code fixes provided by Toms. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7820 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-21- Added the necessary checks so that Suiton makes Fogwall have double ↵skotlex1-2/+6
duration, and to make water-requiring skills to consume their cells. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7813 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-21- Added back a map_freeblock call in skill_delunitgroup which caused a ↵skotlex1-0/+1
memory leak @.@... git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7803 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-20- Added pc_check_weapontype to do a proper skill weapon check that takes ↵skotlex1-1/+2
into account dual-wielding. That is, if a skill can be used with daggers/axes, you'll be able to use the skill when dual-wielding them. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7779 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-20- Corrected Cloaking level 1-2 not letting you move across walls.skotlex1-4/+4
- updated cloaking code so that when you set "enable cloaking without walls", the code will consider you as "always next to a wall", thus you get the wall-speed bonus always. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7778 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-20- Added a skill_unit_db entry for NJ_HYOUSYOURAKU, thanks to Eus for the data.skotlex1-11/+12
- Added the dummy intravision case for the changeoption packet 0x229 - Corrected Fog of Wall so that all targetted offensive skills (not only those who do damage) will fail on cast-end 75% of the time. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7773 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-20- Added a status_check_skilluse on skill_attack_area call to prevent splash ↵skotlex1-1/+2
damage skills from hitting hidden/trickdead/etc characters. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7767 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-19- Fixed the inf code update breakage which was blocking all offensive skills.skotlex1-3/+3
- Added battle setting homun_critical_rate (defaults to 0) - Removed enemy_str/pet_str/enemy_perfect_flee and replaced them with - enable_perfect_flee which specifies which objects can have perfect flee and enable_baseatk which specifies which objects can have a base attack value (both in battle.conf) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7752 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-19- Modified the targetted skill logic to enable offensive skills to be ↵skotlex1-16/+17
targetted at party/guild members if the appropiate inf2 value is set. - Added the SC_JAIL code for timed jailing, but the related @ commands ain't in yet. - Added checks to make adding items to inventory/cart fail when a char is in finalsave state. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7751 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-18- Fixed a crash when trying to extend TK's infinite combo feature.skotlex1-1/+1
- Corrected Poison React to counter regardless of distance, and to use the skill's 50+5*lv% counter chance (instead of 100%). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7730 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-18- Corrected Venom splasher's splash damageskotlex1-17/+8
- You now can't move/attack/use-skills when using Cloaking of a level less than 3 - Fixed compilation of mercenary.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7729 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-18- Corrected Fog of Wall's "targetted spells fail 75% of the time" feature by ↵skotlex1-4/+8
making it behave like GTB, that is, you just get a skill-failed on cast-end, no skill-animation at all. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7728 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-18- Added a proper check to make aggressive mobs never override homun targets ↵skotlex1-1/+1
regardless of distance. - Removed a bunch of homun-related variables that are not needed at all. The alive condition is removed, now the code checks for the hp value to know if the homun is alive or not. - Cleaned up a bit the skill-id function, homun skill checks (such as delay and skill-lv learned) should be correct now. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7727 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-17- Should have fixed the Cart Termination damage code to be scaled correctly ↵skotlex1-43/+52
when you change the max cart weight. Thanks to The Ultra Mage for the error clarification. - Implemented Grandcross weird property where if there's noone on the path it'll hit twice for the skill's reported damage, and when there is (or you cant knockback the target) it'll do a splash attack that hits twice for 500% to all affected targets. - Some cleaning of the combo code. TK Rankers will now get their combo-time extended each time they trigger a kick, enabling them to do "unlimited combos". - Modified the autosave function to use a sweep across the player db instead of across connected clients. This will cause non-connected players (like autotraders) to also be saved on a regular interval, may help with possible data-loss from said characters on unclean shutdowns. - Added function map_foreachpc - Removed the code that forces aggressive mobs to go after a Homun instead of their master (no reason why there should be such a condition). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7721 54d463be-8e91-2dee-dedb-b68131a5f0ec