summaryrefslogtreecommitdiff
path: root/src/map/skill.c
AgeCommit message (Collapse)AuthorFilesLines
2012-04-25* Replaced rand() calls with rnd().xazax-hun1-20/+20
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15975 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-04-25* Code consistency updates. No functional changes. Credits to Lighta.xazax-hun1-67/+63
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15974 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-04-25Fixed bugreport:4468 Frost Nova freeze chance has been updated to meet its ↵shennetsind1-0/+8
renewal values. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15972 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-04-25Fixed Wall of Thorn skill, all of its conditions should now be met.shennetsind1-3/+19
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15971 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-04-23really minor performance improvement on skill_check_condition_castbegin vs a ↵shennetsind1-27/+24
player mounted on a wug, so that it doesn't unnecessarily allocate skill_get_requirement stuff when you won't be able to use the skill at all due to wug riding restrictions git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15945 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-04-22- Fixed Emergency Call (bugreport:3291) so that it does not recall dead ↵xantara1-1/+1
guild members git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15934 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-04-22Fixed bugreport:5604 Firewalk and Electric Walk now function properly.shennetsind1-2/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15917 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-04-22Applied renewal skill changes: (bugreport:5302)xantara1-1/+4
- Fire Bolt: Casting time is reduced by 50% - Cold Bolt: Casting time is reduced by 50% - Lightning Bolt: Casting time is reduced by 50% - Mist Slash: SP cost has changed; now 15 SP at all levels - Shadow Slash: SP cost has changed; now 10 SP at all levels - Apple of Idun (50%): Recovers HP every 5 seconds (from 6 seconds) - Humming: Increase hit rate boosted by 2 times git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15913 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-04-22Fixed bugreport:5537 SR_GENTLETOUCH_CURE now acts with official behavior.greenboxal21-16/+27
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15910 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-04-21Fixed bugreport:5494 missing renewal status for RG_RAID.greenboxal21-0/+4
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15900 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-04-20Initial support for Genetic, Sorcerer and Elemental Summons. Special Thanks ↵shennetsind1-657/+1588
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-11Fixed bugreport:5524 Epiclesis now heals every 3 seconds instead of 1.shennetsind1-18/+17
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15851 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-04-11Fixed bugreport:5556 skill_onskillusage is only triggered if previous skill ↵shennetsind1-10/+5
didn't miss. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15846 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-04-09- Spring cleaning of various source filesepoque111-12/+12
- Removed unused src/map/config/Skills/Mage_Classes.h file git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15837 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-04-08=Generaltechnote241-2/+2
*Added some jobs with ID's and MAPID's masks to prepare for the adding of more jobs in const.txt *Fixed a typo on JOBL_THIRD check in const.txt *Added all currently known tags and ID's support for NPC's, skills, status, and units. *Changed SI_SITTING to official name SI_SIT. *Increased MAX_SKILL to 3040. =NPC *Corrected a typo in the jobmaster script. -Fixed required job level for changing to 3rd to 50. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15836 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-28Fixed bugreport:5515 targets in manhole may now be targeted by shadow form.shennetsind1-9/+9
Also fixed manhole appearance changing to a trap when activated. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15813 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-28Fixed bugreport:5516 Royal Guard's Pinpoint Attack formula was updated and ↵shennetsind1-2/+2
fixed. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15812 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-28Fixed bugreport:5517 Warlock's Comet no longer requires 2 gemstones if you ↵shennetsind1-20/+22
cast it beside another warlock. Also Fixed Adoramus bug of same fashion, now it no longer requires a blue gesmtone if you cast it beside another character of acolyte base class git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15811 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-28Fixed bugreport:5249 (Lighta's post in the bottom), Priest's status recovery ↵shennetsind1-0/+1
now removes white imprison successfully git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15809 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-28Renamed the last RR_ prefix'd setting, thanks to brianl/wolfedshennetsind1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15807 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-23Fixed bugreport:1551 causing coma on monsters now grants you ↵shennetsind1-2/+2
your-fully-deserved exp. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15783 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-23Fixed bugreport:2564 da scenario:shennetsind1-0/+2
- mage casts firebolt on professor with doublecasting+maya, if reflected, the fire bolt would trigger double casting. no longer happens (bug fixed). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15782 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-23Added the missing Fixed Casting Time support.shennetsind1-9/+13
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15780 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-23Follow up r15777, reworked skill_icewall_block so that it stops any attacks ↵shennetsind1-11/+9
against anyone who got blocked off the wall, not only caster. Modified iw block algorithim on mob_ai_sub_hard_activesearch git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15779 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-23Fixed bugreport:3574 Ice Walls finally are able to stop mobs chasing caster, ↵shennetsind1-37/+66
and they now act as walls meaning mobs will not turn around to attack you unless they were already chasing you git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15777 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-23Fixed bugreport:5324 Elemental Sword bautospellonskill recursion is now ↵shennetsind1-0/+4
fully functional git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15775 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-23Fixed bug with autocasts being blocked by skill_amotion_leniencyshennetsind1-11/+24
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15774 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-23Fixed bugreport:1017 a item dropping over a ice-wall-occupied cell is no ↵shennetsind1-0/+2
longer lost/deleted. Dev Note: the thing I added to sign icewalls may be suitable for bugreport:3574 as well git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15772 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-23Fixed bugreport:2424 Twilight Alchemy III no longer allows you to attempt to ↵shennetsind1-0/+4
bypass empty bottle count git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15770 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-22Fixed bugreport:5344 break fall's dodge combo may be only be used with fly ↵shennetsind1-1/+1
kick now git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15765 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-22Fixed the damn broken combo code. Fixed Fallen Empire and Dragon Combo (part ↵shennetsind1-13/+5
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
2012-03-22Fixed bugreport:5355 Shadow Chaser's Auto Shadow Spell is now fully functional.shennetsind1-3/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15756 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-22Fixed Mechanic Stealth Field to move accordingly and grant proper effectshennetsind1-2/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15754 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-22Fixed bugreport:5486, now a more friendly message is displayed upon skill ↵shennetsind1-4/+9
fail when you do not have enough of the required ammo. Dev Note: I wasn't able to find a proper reply packet so I came up with this .-. if you know a official solution make yourself comfortable to replace. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15752 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-22Fixed bugreport:5385 soul collect skill now takes in account if its under ↵shennetsind1-2/+5
raising dragon state in order to boost amount of spheres it may summon git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15748 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-22Added GM Sandman Skill (part of bugreport:5172). now available thru angra ↵shennetsind1-0/+11
manyu item. - Causes target player, mob, homunculus or mercenary to enter in endless sleep state until cast again (logoff cancels). - Cannot be cast on self git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15747 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-22Fixed bugreport:5466 Wug Strike now works as it shouldshennetsind1-4/+0
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15745 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-21- Fixed Randomize Spell not casting the skills properly. (bugreport:5480)epoque111-0/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15741 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-19Added the official sitting icon support, now while sitting a ugly icon will ↵shennetsind1-0/+6
be displayed in the buff bar. thanks to keikun for providing the id, curse him as much as you like for the icon being horribly ugly <3 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15732 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-19Refine DB updatelordttseven1-1/+1
* DB courtesy of Kenpachi * added support for different stats per refine level for renewal * cleaned up the corresponding code a little * REMODE now displays the atk values on the client correctly git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15730 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-18* uncluttered DB paths between REMODE on/off a littlelordttseven1-13/+6
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15719 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-18Fixed Mechanic Hovering skill, bugreport:5363shennetsind1-0/+4
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15718 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-18Fixed Sura Windmill skill effect, bugreport:5438shennetsind1-1/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15711 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-18Added Official behavior to non-ensamble songs: they no longer go off if you ↵shennetsind1-2/+60
warp within the same map. bugreport:4547 Dev Note: I didn't put it under session data cause only bard/gypsy classes use it, I found it to a be a waste. I'm not very comfortable with the dbmap either, however, so if you got any idea on how to make it more efficient lets talk :3 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15708 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-18Added Official Guild Aura Implementation bugreport:667shennetsind1-7/+33
Before: - Guild Aura would only trigger when guild master moved Now: - Guild Aura is triggered when master moves and/or when guild mate gets inside the area - Guild Aura range is no longer hardcoded, you may modify it from skill_unit_db Also: - Added new skill_unit_db target type 'guild' git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15707 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-17fixed gcc warning, removed unused variable 'flag'shennetsind1-5/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15697 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-17Rewrote SC_MAGICPOWER to behave like on official serverslordttseven1-47/+38
* everything has been tested (with the exception of WZ_SIGHTBLASTER) * the status now uses a much simpler two-state mechanism; see http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=4833 for details * non-offensive and non-magic skills no longer consume the status * set WZ_ICEWALL NK flag to NK_NO_DAMAGE to properly not consume the status * fixed stale matk used for unit- and timerskills * fixed the original bug with isilla card triggering a status recalc (bugreport:4833, matk swapping no longer needed) * removed a couple now unnecessary exceptions (they now work out of the box/as side effects) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15694 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-16* forgot to also actually store the skill ids as numbers (follow-up to ↵lordttseven1-4/+2
r15692, semi-revert of r15634) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15693 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-16* fixed null pointer dereference in skill_name2id (bugreport:5455)lordttseven1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15692 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-15Status change packet cleanuplordttseven1-1/+1
* fixed a couple typos * replaced duplicate function clif_status_load with a macro * normalized and documented status change table related getter abstraction * put some checks that were previously in multiple places into clif_status_change * packets are now used as they are on official servers: - ZC_MSG_STATE_CHANGE for ending statuses and starting them on non-pcs - ZC_MSG_STATE_CHANGE2 for starting *all* statuses on players - tick = 9999 for statuses of indeterminate duration - for non-pc units, a packet is only sent if it has a visual impact on the client; if you notice any missing visual effects, please report them! * fixed hidden GM characters leaking certain status packets * fixed hidden GM characters not displaying timers for newly gained statuses * fixed status end packet never being sent for non-pc, non-mercenary units * fixed SC_CLOAKING displaying a time bar on the client * fixed tick being an unsigned int, yet used as a signed int * removed hard-coded status length exceptions in clif_status_change git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15688 54d463be-8e91-2dee-dedb-b68131a5f0ec