summaryrefslogtreecommitdiff
path: root/src/map/battle.c
AgeCommit message (Collapse)AuthorFilesLines
2013-04-11Follow up 80ca4067115774d6c1c447072b470d5f69ab5883shennetsind1-2/+2
Improved, previous fix would screw up when non-player unit attacked a player. Signed-off-by: shennetsind <ind@henn.et>
2013-04-11- Strongly improved the structure of status_get_sc_def so it's a lot easier ↵playtester1-2/+0
to apply official formulas and make sure the checks are applied in the correct order - In the process, fixed the effect of luk on status changes and removed the static 3% resistance that has been proven to not exist (97 vit, 1 luk can get stunned on officials) - As there is no general luk resistance as it depends on each status change, removed the luk_status_def configurations - Updated the success chance of Decrease Agi to the formula that was extracted from Aegis (blevel/5 + int/5 + skill_lv*3 + 50) Note: I tested all the status changes thoroughly, but as this is a quite large update, it would be nice if someone could cross-check it. Note2: Renewal status resistances (for pre-renewal status changes) are currently not implemented in rAthena at all. They need to be added in another update. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17201 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-04-11-Fix SC__SHADOWFORM not ending if target does not move after being warp. ↵glighta1-3/+3
bugreport:7271 -- Thus allowing to inflict damage between map (only if both player don't move). -- Cleanup old map-check on move check. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17148 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-04-10Fixed reflect-damage loop that'd result to a crashshennetsind1-3/+5
Special Thanks to jTynne! Signed-off-by: shennetsind <ind@henn.et>
2013-04-07PacketDB Overhaulshennetsind1-1/+0
Feature Design by GreenBox Special Thanks to mkbu95 for bringing this topic up! (packet db) http://hercules.ws/board/topic/353-packetdb-overhaul/ Signed-off-by: shennetsind <ind@henn.et>
2013-04-06Fixed Bug #7089shennetsind1-0/+3
Special Thanks to KyleZ, jTynne, mkbu95 http://hercules.ws/board/tracker/issue-7089-server-crashed-by-16-garment/ Signed-off-by: shennetsind <ind@henn.et>
2013-04-02Introducing 5 new/official mapflags.shennetsind1-73/+28
They're: - weapon_damage_rate - magic_damage_rate - misc_damage_rate - long_damage_rate - short_damage_rate Dropped 15 battle settings that became pointless with this upgrade. Updated battleground zone damage reductions, skill damage from -30% to -20% and weapon damage from -40% to -30%. Special Thanks to Muad_Dib. Signed-off-by: shennetsind <ind@henn.et>
2013-03-30Hercules Renewal: clif.c completeshennetsind1-27/+27
Added the last missing functions into the interface, all functions in clif.c are now wired to the interface. http://hercules.ws/board/topic/237-hercules-renewal/ Also shortened clif->displaymessage to clif->message, removed the old clif->message and merged its functionality with clif->disp_overhead (both use the same packet and do the same thing :P) - and a gazillion other stuff: http://hercules.ws/board/topic/316-introducing-hercules-channel-system/ Signed-off-by: shennetsind <ind@henn.et>
2013-03-29Hercules Renewal: clif.cshennetsind1-33/+33
1st Phase Complete. http://hercules.ws/board/topic/237-hercules-renewal/ Signed-off-by: shennetsind <ind@henn.et>
2013-03-11Dropping leftovers from when battle.c wasn't all wired to the interfaceshennetsind1-3/+0
Signed-off-by: shennetsind <ind@henn.et>
2013-03-09Hercules Renewal: battle.c completeshennetsind1-61/+60
Added the last missing functions into the interface, all functions in battle.c are now wired to the interface. Signed-off-by: shennetsind <ind@henn.et>
2013-03-08Fixed Bug #7114malufett1-1/+1
-revised/added 'npc_isnear' where it checks if an NPC is nearby when making chat rooms or using vending. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2013-03-06Fixed Bug #7110malufett1-0/+1
-where some skill causes the map server to crash Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2013-03-02Fixed Bug #7107shennetsind1-2/+1
MSVC Warning http://hercules.ws/board/tracker/issue-7107-compiling-warning-c4113/ Signed-off-by: shennetsind <ind@henn.et>
2013-03-02Hercules Renewal: skill.cshennetsind1-144/+140
http://hercules.ws/board/topic/237-hercules-renewal/ Signed-off-by: shennetsind <ind@henn.et>
2013-03-01Hercules Renewal: battle.cshennetsind1-68/+99
http://hercules.ws/board/topic/237-hercules-renewal/ Signed-off-by: shennetsind <ind@henn.et>
2013-02-27Fixed Bug #6527malufett1-0/+1
-Where all NPC don't allow changing of equipments by default and now can be set in 'items.conf'.
2013-02-24Fixed logical issue / gcc warningshennetsind1-1/+1
Signed-off-by: shennetsind <ind@henn.et>
2013-02-24Fixed Bug #7091malufett1-1/+6
-Updated SN_SIGHT to its RE behavior. -Updated RE behavior that deals with NPC dialogs and using items/skills. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2013-02-22Merge branch 'master' of https://github.com/HerculesWS/Herculesmalufett1-0/+15
2013-02-22Fixed Bug #7087malufett1-1/+1
-Updated official behavior of warp portal dealing with skill requirement and casting. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2013-02-21Merge branch 'master' of github.com:HerculesWS/HerculesStreusel1-1/+1
2013-02-21> Follow up to r17140.aleos1-0/+15
- Crush Strike now lasts for 30 seconds. - Phantom Thrust is now targeted to allies. - Updated SP requirement for Death Bound. - Giant Growth now has a .1% chance to break caster's weapon. - Stone Hard Skin now has a 30% chance to break caster's weapon. - Stone Hard Skin now has a 30% chance to reduce 25% damage from monsters for 10 seconds. - Corrected Stone Hard Skin's DEF/MDEF increase formula. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17145 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-02-21Fixed Bug #7066 and Follow up Bug #4832malufett1-1/+1
-Where KG and OB can hit there Zanzoe. -Ankle Snare should now work properly in GvG. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2013-02-18Improvements all over the placeshennetsind1-5/+6
Committing on the behalf of mkbu95 who is unable to do it himself, he coded it all and sent me the diff. Thanks mkbu95! Signed-off-by: shennetsind <ind@henn.et>
2013-02-16Updating the Headers across source filesshennetsind1-1/+1
And adding missing ones. Signed-off-by: shennetsind <ind@henn.et>
2013-02-15Adjusted 'adjust_skill_damage' Mapflagshennetsind1-7/+6
The flag is now respected by all unit types, not only players. This also fixes a previous problem as reported by exneval (Thanks!) Signed-off-by: shennetsind <ind@henn.et>
2013-02-15Fixed Bug #7039shennetsind1-6/+8
Status effects no longer propagate with magical reflection (e.g. when frost diver is reflected there is no chance that target will be frozen) http://hercules.ws/board/tracker/issue-7039-frost-diver/ Signed-off-by: shennetsind <ind@henn.et>
2013-02-14New Mapflag adjust_skill_damageshennetsind1-0/+22
Made as a improvement of the original ADJUST_SKILL_DAMAGE -- special thanks to Muad_Dib! . This mapflag allows you to modify the damage of any skill in any map, for example "prontera mapflag adjust_skill_damage MG_FIREBOLT 200" doubles the damage of Firebolt in prontera Another Example: "prontera mapflag adjust_skill_damage MG_FIREBOLT 50" Halves the damage of Firebolt in prontera. Signed-off-by: shennetsind <ind@henn.et>
2013-02-07Fixing mistake in modified source code headersshennetsind1-1/+1
Signed-off-by: shennetsind <ind@henn.et>
2013-02-05Fix Bug # 7049malufett1-0/+1
Added new item bonuses bFixedCast, bVariableCast & bFixedCastrate. (see 'doc/item_bonus.txt' for info) Added new conf for max walk path.(Bug Report # 7042) http://hercules.ws/board/tracker/issue-7049-do-we-need-new-bonus/?gopid=16578#entry16578
2013-02-03item_noequip overhaul / Fixed Bug #7048shennetsind1-0/+1
Items are no longer unequipped when disabled by item_noequip.txt, instead their effects are nullified -- however cards in them, unless also disabled, wont have its effect nullified. Consumables will be consumed even while disabled, unless you modify the new config item_restricted_consumption_type http://hercules.ws/board/tracker/issue-7048-requestreport-regarding-to-item-noequiptxt/ Signed-off-by: shennetsind <ind@henn.et>
2013-02-03Fixed Bug #7046shennetsind1-4/+3
Updated Safety Wall Renewal behavior, when taking damage higher than the health of the safety wall, excess damage will no longer be passed to the player. http://hercules.ws/board/tracker/issue-7046-safetywall-should-always-block-at-least-one-hit/ Signed-off-by: shennetsind <ind@henn.et>
2013-01-29Fixed battle_calc_cardfix typo, Thanks to MaminhA's hawk eyesshennetsind1-1/+1
Signed-off-by: shennetsind <ind@henn.et>
2013-01-28New skill configshennetsind1-0/+4
After due consideration we thought it'd be in the best interest of the community to provide a switch to this official feature since it drastically change the way traps can be used Signed-off-by: shennetsind <ind@henn.et>
2013-01-28Performance Improvement on Battle/Damageshennetsind1-104/+93
Dropping MarkZD's INT64 megalomania, his usage of int64 was completely unnecessary and was only taking additional processing time and spawning twice the amount of bytes it actually needed. Also dropping the poorly designed DAMAGE_ macros. Updating battle.c header to outline Hercules as made by Jman. Signed-off-by: shennetsind <ind@henn.et>
2013-01-26Changing ASCI Art / Moving stat server to Hercules.shennetsind1-6/+6
Changed the ASCI art (not quite final; just changing it prior to release), moving stat server to hercules end Signed-off-by: shennetsind <ind@henn.et>
2013-01-16Fixed bugreport:7182 where GN_MIX_COOKING is limited in creating 1 food item.rud0lp201-9/+25
Fixed bugreport:7172 missing elemental resistance bonus of NC_RESEARCHFE. Recoded RA_FEARBREEZE.(bugreport:7188). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17101 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-01-10Implemented official walk path dealing with obstacle.(bugreport:6159)rud0lp201-1/+8
-see 'src/config/core.h' for settings[OFFICIAL_WALKPATH]. Fixed bugreport:7057 where HP_ASSUMPTIO should only double eDEF & eMDEF. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17091 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-01-10Fixed bugreport:7151 where NJ_ISSEN don't consume HP on plant type monsters.rud0lp201-2/+0
Fixed bugreport:7154 where RC_BOSS type monsters are not immune with SC_DEEPSLEEP. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17090 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-01-09Fixed bugreport:7105 where pierce defense must ignore def and add (def/2) as ↵rud0lp201-6/+5
additional ATK damage. Fixed bugreport:7148 where r17072 broke the ability of smiths to forge weapons. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17089 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-01-08Fixed bugreport:7125 changed CH_PALMSTRIKE to aspd based like official.rud0lp201-2/+2
Fixed bugreport:7131 where negative def in PRE causes instant death to target. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17088 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-01-05Fixed bugreport:6332 updated NJ_TATAMIGAESHI to its RE behavior.rud0lp201-2/+4
Fixed bugreport:7101 where MO_EXTREMITYFIST don't consume sp when used against plant type monster. Fixed bugreport:7116 missing duration for HW_MAGICPOWER. Fixed bugreport:7117 where WL_WHITEIMPRISON doesn't work properly. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17078 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-01-03- Fixed an warning of type casting. (bugreport:7081)markzd1-10/+9
- Removed an unecessary type cast before atoi. - Fixed Ray of Genesis Attack Formula. (bugreport:7053) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17074 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-01-02Reverted r17070 XD.(bugreport:7094)rud0lp201-33/+33
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17073 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-01-02-Follow up r17065 glighta1-1/+1
--removing useless check on skill_id --fix few broken atcommand due to failed sscanf -Change skill_amotion_leniency as pointed out on tid:76492 so amotion delay wont be twice by default, (also increase intervall if you do want higher acd) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17072 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-01-02Modified the formula of the Ice Pick, it was def1+vit_def, but according to ↵ediejohnny1-3/+3
iROWiki, it's Hard Def/2, so, def1/2 now. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17071 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-01-01Follow up r17017 fixed some wrong type casted variables.rud0lp201-33/+33
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17070 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-01-01Update NJ_ISSEN to its official RE behavior.(bugreport:6114, bugreport:5426)rud0lp201-5/+28
Fixed bugreport:6688 MO_EXTRIMITYFIST skill effect. Updated all non 3rd job skills to there official RE cast time delays. Updated WL_WHITEIMPRISON where cooldown should trigger whether success or not. Added missing status icon for SC_MATKPOTION and SC_ATKPOTION. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17069 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-12-30* Follow up r17065markzd1-1/+2
Fixed some error when creating vars and some warnings.(bugreport:7074) * Removed an undisered warning on script's sscanf. (bugreport:7059) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17066 54d463be-8e91-2dee-dedb-b68131a5f0ec