summaryrefslogtreecommitdiff
path: root/src/map/battle.c
AgeCommit message (Collapse)AuthorFilesLines
2012-03-17Fixed bugreport:5304 flee calculation on renewal, thanks to Angezerus and Vali!shennetsind1-1/+5
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15704 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-17Fixed Reject Sword, bugreport:4493 it nows applies damage reduction damage ↵shennetsind1-18/+15
properly and rejects dual-wield weapons properly as on official servers. super thanks to daegaladh for his contribution git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15700 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-08- Fixed skillratio bonus only ever being multiplied by a factor of 1 ↵epoque111-2/+2
(follow-up to r15666) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15667 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-08- Correctly fixed Aimed Bolt and Arrow Storm skill ratios (related to ↵xantara1-4/+6
bugreport:5272 and r15663) - thanks to Lighta git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15666 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-07Fixed a few Ranger-related skills (bugreport:5272)xantara1-3/+3
- Added check to not allow attacks when mounted on a Warg - Added check to only allow a certain amount of skills when mounted on a Warg - Updated Warg Bite's chance rate of immobilization and duration - Updated Arrowstorm and Aimed Bolt's skill ratio damage git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15663 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-02-27Fixed PA_SACRIFICE crash, bugreport:5371, present since r15277shennetsind1-10/+9
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15635 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-02-22Applied renewal skill changes: (bugreport:5302)xantara1-3/+40
- Arrow Shower's attack power (50+10*SkillLvl) - Wind Blade's MATK per hit (from 100% to 150%) - Storm Gust's chance of freezing (65-5*SkillLvl) - Land Mine, Blast Mine, Claymore Trap's damage formula - Spear Quicken's ASPD (fixed 7), CRIT (3*SkillLvl) and FLEE (2*SkillLvl) - Holy Cross's double damage with 2-handed spear - Axe Mastery's damage increase also applies to Sword class weapons - Spiral Pierce's weapon requirement (now allows swords) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15626 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-02-19Updated Enchant Blade, bugreport:5346shennetsind1-7/+4
- May only cast on self. - Updated formula: [( ( Skill Lv x 20 ) + 100 ) x ( casterBaseLevel / 150 )] + casterInt git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15620 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-02-19Initial support for Wanderer and Minstrel, and a few adjustments here and ↵shennetsind1-2/+20
there for other classes. - credits to 3ceam for the base. - should you step by any bugs let us know, http://rathena.org/board/tracker git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15616 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-02-18Added 2 new item bonuses as per kenpachi's request:shennetsind1-1/+7
- bonus2 bHPGainRaceAttack - bonus2 bSPGainRaceAttack git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15608 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-02-18Initial Support for Shura and a few adjustments here and there.shennetsind1-6/+64
- credits to 3ceam for the base. - should you step by any bugs let us know, http://rathena.org/board/tracker git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15606 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-02-17Fixed bShortWeaponDamage to work against cart termination, bugreport:5328shennetsind1-9/+6
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15593 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-02-17Initial support for Shadow Chaser and a few adjustments here and there.shennetsind1-4/+79
- credits to 3ceam for the base - should you step by any bugs let us know, http://rathena.org/board/tracker git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15589 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-02-13 - Added `libconfig` (configuration file library: ↵gepard19841-26/+0
http://www.hyperrealm.com/libconfig/): - Updated VS9/10 project files. - Updated `configure` & `Makefile`s. - New GM, Commands & Permissions system: - '''This is a backwards compatibility breaking update''', please read tid:58877 - Replaced GM levels with Player Groups. - Commands permissions & other privileges now depend on group, not GM level. - `@help` command improvements: requires "commandname" param and shows more detailed info about commands. - Modified GM whisper system to deliver messages basing on permissions, not GM level. - Remote trade request is now possible only if player is allowed to use `@trade` command as well. - Added a proper permission to use `/changemaptype` command. - `clif_displaymessage` is now capable of displaying multiline messages. - All `ACMD_FUNC`s are static now, and the only way to invoke them is with `is_atcommand()`; all client commands (starting with `/`) are now translated into corresponding atcommands (with exception of `/kick` used on monster, as there is no atcommand to kill single monster). - Removed nonsense "bot check" triggering when player blocked (`/ex`) Server. - Merged `@monster`, `@monsterbig` and `@monstersmall`. - Improved flow of atcommand execution to avoid revealing info about online players or existing commands to non-privileged players. - Merged `atcommand` and `charcommand` script functions (`charcommand` is aliased to `atcommand`). - Fixed `atcommand` script function reading unknown memory area (possible access violation). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15572 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-02-11added drain support to royal guard reflect damage skill, bugreport:5320shennetsind1-0/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15567 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-02-09Fixed bug with hunter traps working on mobs when cast by other mobs, ↵shennetsind1-1/+1
bugreport:5278 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15559 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-02-09Added renewal behavior to safety wall (exclusive to remode)shennetsind1-0/+13
- Safety Wall now possesses a lifetime equal to 3 times the health of the caster, when the wall absorbs this much damage, the wall is removed and any remaining damage is dealt to the player. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15554 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-02-09Added some renewal behaviors of skills from bugreport:5302 (all under ↵shennetsind1-2/+14
renewal mode) - Steel body no longer sets def and mdef at 90, instead it reduces incoming damage by 1/10. - Storm Gust no longer possesses a hit counter; instead every hit have a chance to freeze of 20+(5 x skill_level). - Thunder Storm skill ratio was increased from 80% to 100% - Misc: added isOFF macro to replace REMODE == 0 compiler-level-checks. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15553 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-02-02Removed `gvg_eliminate_time` battle config, as it was only used by scripts. ↵gepard19841-1/+0
Replaced its occurences in War of Emperium script with default value (7000ms) (bugreport:137). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15538 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-31Removed obsolete `mob_clear_delay` config (since r5707) (bugreport:137)gepard19841-1/+0
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15532 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-30- Removed more trailing tabs.brianluau1-8/+8
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15527 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-30- Removed trailing tabs, and fixed some spacing.brianluau1-6/+6
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15524 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-23` Fixed Emperium's skill damage/heal and elemental resist (eg. Aspersio) - ↵xantara1-6/+17
bugreport:5256 ` Rebranded the Core.h file to rAthena git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15507 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-17Enabled Mersenne Twister MT19937 as random number generator instead of ↵gepard19841-48/+49
standard `rand()` function (follow-up to r14865, r14870). - It fixes issues caused by RAND_MAX being only 32k in Windows system (bugreport:1927, bugreport:86). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15483 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-15Fixed a gcc warning, blame on r15451shennetsind1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15459 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-14Fixed hunter traps so that they MAY hit their owner in pvp areas, bugreport:5228shennetsind1-5/+6
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15451 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-14fixed battle_delay_damage from delaying damage in 1ms or less interval (it'd ↵shennetsind1-1/+2
receive 1 because the client delay stuff understands 1 = wait for damage) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15450 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-14Fixed bug with attack timer being chained unnecessarily when attacker is not ↵shennetsind1-3/+3
able to issue atk -- this also caused client messages to be spammed e.g. "please equip arrow first". bugreport:5189 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15443 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-11Picklog improvements:gepard19841-1/+1
- now it is finally possible to log every item players gain or lose - added 3 log types: `I` for auctioned items, `B` for buying shop transactions and `X` for all other items transactions that don't fall into another category (for detailed explanation on all log types read `conf/log_athena.conf`) - it also fixes items being logged as picked up/gained by player when in fact they were dropped on the ground due to full inventory git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15420 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-08Fixed Cloaking Exceed.protimus1-0/+3
- Stop hiding status when use skills or attack enemies. - Added security fixes to clear hiding status in some cases, like warped and reloging. - Updated walk speed formula. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15408 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-08Fixed Exceed Break to work properly.protimus1-0/+6
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15407 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-07Initial support for Royal Guard and some adjustments here and there.shennetsind1-23/+145
- credits to 3ceam for the base. - should you step by any bugs let us know, http://rathena.org/board/tracker/ git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15404 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-04Fixed a typo from r15381, bugreport:5202shennetsind1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15391 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-04Minor packetver babysitting, bugreport:4810shennetsind1-1/+15
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15381 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-04Fixed trap bugs as per bugreport:2817 (you finally can attack traps directly :0)shennetsind1-4/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15380 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-03Removed unused and unofficial bonus `bRandomAttackIncrease` (in SVN since ↵gepard19841-4/+1
r2, bugreport:2139). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15372 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-29Fixed SC_BURNING icon not going off after it was over;shennetsind1-3/+3
Fixed SC_BURNING from making character unable to move/cast skills/use items/etc, bugreport:5174 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15328 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-29* Updated for Emperium not can be healed by any skills.protimus1-0/+4
* Updated investments formulas of HP and SP according to renewal. - Not yet official, need more informations. - This is a temporary fix necessary for the emperium can be broken. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15321 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-29Fixed bug that allowed a specific timing to not receive reflected damage if ↵shennetsind1-12/+22
the origin of the reflect has died, bugreport:4494 Special thanks to xazax! Also: Added a performance improvement: -- Before: all delayed damage would loop through all mobs/players/etc units in the server to confirm that the origin of the damage is equal to the source -- Now: it compares the id of the damage source to the source id. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15314 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-29Reverted partial r15186 it has been confirmed on a official server that sg ↵shennetsind1-7/+0
doesn't do double damage on hitCount%3 == 0 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15297 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-25Fixed a crash bug caused by clones that were committing suicide with ↵xazax-hun1-1/+6
PA_SACRAFICE. bugreport:4950 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15277 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-25Follow up r15267, changed to standardshennetsind1-2/+0
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15268 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-23Follow up r15224, being these map flags do not stack then we can check just ↵shennetsind1-1/+1
for pvp rather than 2 (gvg&bg). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15229 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-23- Removed unused "save_log" setting (addepted from char server, used to ↵GodLesZ1-1/+0
debug save/load of objects) (bugreport:3218) - Fixed tabs in message output (bugreport:5156) - * change - Ai4rei was faster :P git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15227 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-23follow up r15048, fix to bugreport:5151GodLesZ1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15224 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-20Storm Gust bug fix for bugreport:1813, also fixed a casual overflow in ↵shennetsind1-0/+7
sg_counter git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15186 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-20Fixed Devotion vs Reflection bug, bugreport:4508shennetsind1-2/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15185 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-20Fixed Pressure from not doing any damage to devoted targets, bugreport:4182shennetsind1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15184 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-20removed redundant checks -- pressure doesn't reach that part of the codeshennetsind1-2/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15183 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-18RE Defense damage reduction fixed, bugreport:5111shennetsind1-5/+17
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15160 54d463be-8e91-2dee-dedb-b68131a5f0ec