summaryrefslogtreecommitdiff
path: root/src/map/battle.c
AgeCommit message (Collapse)AuthorFilesLines
2009-11-29- Official castle defense damage reduction/defense status changes. ↵Kisuka1-0/+2
(bugreport:2901) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14175 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-19- Applied the renewal client support patch from Diablo (eA forum topic 222623)skotlex1-2/+2
- Added support for strcharinfo(3) to retrieve the player's map - Added script command "searchitem" for name item searches. - Moved PACKETVER to src/common/mmo.h as it's needed by the char-server now - Changed the status valX from int to long so that it won't break for pointer-storage in other architectures. - Moved the change party leader code to party.c - A few bugfixes or packet field completions based on my past experience messing around with my server. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14155 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-03* Added battle_config.mob_slave_keep_target config option (monster.conf)L0ne_W0lf1-0/+1
- When yes (default) MVP slaves will always keep their prior targets. - When no the old behavior of switching to the closest target is enabled. * Updated MAX_MOB_DB to 4000 (Monsters are starting to appear in the 2k ranges) * Changed default respawn time (when 0) to 500 from 5000. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14119 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-10-26Implemented NPC_VAMPIREGIFT and NPC_WIDESOULDRAIN.Inkfish1-0/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14102 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-10-26* The status SC_INVINCIBLE now reduces all damage to 1.L0ne_W0lf1-1/+1
- Official behavior, and allows players to cancel NPC_ALLHEAL casts. - If battle_config.invincible_nodamage is true, reflected damage is still 0. * Minor updates and supporting data for Sealed Shrine. - Zone 5 is now designated for sealed shrine restricted skills. - Added new quest_db entries for Sealed Shine cooldown. - Updated mob_db entries for Orc's Memory Instance. (improper stats) - Updated Land Mine to have a splash effect. (Provided by Daegaladh) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14101 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-10-02Fixed a damage underflow (bugreport:3624)Inkfish1-6/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14077 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-08-18Equipment DEF penalty shouldn't be applied to players in Mental ↵Inkfish1-2/+4
Strength.(bugreport:3454) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14010 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-08-02* Questlog code cleanup.Inkfish1-1/+2
* Fixed range check of autospell and autospell2 using wrong target when it should be used on yourself. * Implemented official behavior of party_show_share_picker. * Restricted zones in 'item_noequip.txt' can now stack. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13987 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-29* Fixed damage_level is not calculated properly on normal attack. Inkfish1-1/+1
* Kaahi is supposed to be canceled on logout. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13978 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-29* Kaahi heals no matter if attack connects. (bugreport:2440)Inkfish1-0/+3
* Fixed a typo causing skillitem always resets skill delay. (bugreport:3431) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13977 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-18- Fixed the config description for 'random_monster_checklv' (follow up to ↵brianluau1-1/+1
r13952). (bugreport:3378) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13954 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-11* Some updates for range check. (bugreport:3339)Inkfish1-0/+9
- Monsters shouldn't use skills if the target is within its attack range but is out of the skill range. - Monsters' skill range is no longer 9 by default. - Range for players' attacks and skills should always check for a circular area. - The range of Magnetic Earth is 2. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13944 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-07Skills that have multiple hits should do 1 damage per hit to plants.Inkfish1-2/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13938 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-05You should lose hp anyway even if your Martyr's Reckoning is perfect dodged.Inkfish1-8/+10
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13934 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-04TK_POWER shouldn't count the player him/herself for the skill.Inkfish1-2/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13931 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-04* Martyr's Reckoning can be perfect dodged.Inkfish1-1/+5
* Casting Flying Kick while running and in the spurt status doubles the damage dealt without spurt status. (bugreport:1898) - TODO: bonus on running is still not correct. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13929 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-29* Fixed attack not counted as connect when dodged and got damage from skill ↵Inkfish1-0/+2
bonus like Weaponry Research. * Corrected the description for vit_penalty_type. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13918 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-28* Implemented script command "autobonus". [Inkfish]Inkfish1-16/+1
- "autobonus" is similar to "bonusautoscript", however it has a timer of its own. - Updated itemdb changing items bonus using "bonusautoscript + sc_start" mode to "autobonus + bonus" mode. - Remove bonusautoscript and status changes that was needed by bonusautoscript and is no longer in use. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13915 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-19* Implemented script command "areamobuseskill" and skill NPC_INVINCIBLE and ↵Inkfish1-7/+15
NPC_INVINCIBLEOFF. (topic:217330) * Using items no longer cancels invincibility(but using target and ground skills through items does). (bugreport:3259) * Fixed Butterfly Wings not working during GVG. (bugreport:3264) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13897 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-15Removed the 'src' parameter from skill_delunitgroup() (see r5911) ↵ultramage1-1/+1
(bugreport:3253). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13893 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-13* If both Double Attack and critical attack have chance to trigger within ↵Inkfish1-24/+19
one attack, Double Attack takes priority. (bugreport:3231) * Fixed Butterfly Wings not working on maps blocking Teleport. (bugreport:3236) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13886 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-12Fixed "arrow_atk" flag never being reset results in arrow consumption on ↵Inkfish1-0/+2
itemskills and autocasts. (bugreport:3233) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13884 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-08* Added a configuration for whether damage of EarthQuake with single target ↵Inkfish1-0/+1
can be reflected. * Fixed Wizard Spirit can block reflected magical damage other than Kaite's.(bugreport:3161) * Fixed Kaite works against bosses.(follow up to r13857) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13860 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-05* Fixed turning off a skill needed to meet the requirements. (bugreport:3175)Inkfish1-1/+13
* Skills used through items not having aftercast delay or cast time now don't overwrite the former canact_tick. (topic:220921) * Multiple autoscripts now can trigger at once. * Applied a temp fix for autoscripts crashing server.(bugreport:3154) * Implemented SC_JEXPBOOST (thanks to GMJobbie for the diff). (bugreport:3177) * Implemented SC_IGNOREDEF. (topic:217330) * SC_DEFRATIOATK won't affect boss monsters. (topic:217330) * Fixed skip_teleport_lv1_menu made lv2 skip menu as well. (bugreport:3183) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13844 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-30Fixed 'n_ele' not initialized and a typo in the Changelog.Inkfish1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13828 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-30* Multiple autocasts can go off at a time now. [Inkfish]Inkfish1-20/+16
* Splash damage doesn't get modified by percentual modifier now. [Inkfish] * Monster's Spiral Pierce is again...non-elemental. [Inkfish] git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13827 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-29* Added a new battle flag for telling which skills can have bHealPower effect.Inkfish1-2/+3
* Added documentation for bHealPower. * Fixed some behaviors for healing skills, (thanks to L0ne_W0lf) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13821 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-29* Added new bonuses bHealPower and bHealPower2. Inkfish1-5/+3
* Heal skills code clean up. - bSkillHeal can affect offensive heal now. - bSkillHeal2 can affect AppleIdun and SlimPitcher now. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13820 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-23Splash attacks do cause additional effects except for autocasts. ↵Inkfish1-1/+1
(bugreport:2661) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13804 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-22Splash attack doesn't cause any status effects or autocasts any ↵Inkfish1-3/+5
more.(bugreport:2661) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13801 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-22* Fixed some behaviors of additional effects (bugreport:3100,bugreport:2661)Inkfish1-34/+0
- Coma can now be blocked by such skills as SafetyWall, Pneuma and Basilica. - Equipment breaking behaves exactly like coma. - Skill's self damage may now causes coma, equipment breaking and autospell/autoscript. - GrandCross now allows you to drain hp/sp. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13800 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-20* Now fiberlocking a fiberlocked target doesn't renew the timer but instead ↵Inkfish1-6/+6
increases its fireweakness [Inkfish] - This makes doublecasting firebolts on a double fiberlocked target having double damage from both 2 bolts possible = =(bugreport:3061) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13799 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-19Rigged the r13676 modification of battle_calc_weapon_attack to make neutral ↵ultramage1-3/+3
element reductions work again (bugreport:3097). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13795 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-14* More logical modifications on skill_additional_effect thing. Thanks to ↵Inkfish1-59/+26
ultramage. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13771 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-13* Sorry for taking 3 steps for this ugly code. Please take it as a ↵Inkfish1-22/+32
compromise since we do not have enough info to emulate how Aegis does. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13769 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-13Fixed effects being applied improperly in some rare cases.Inkfish1-3/+9
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13768 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-13PNEUMA, BASILICA and SAFETYWALL no longer protect you from such negative ↵Inkfish1-18/+42
status changes as COMA, STUN, FREEZE and etc. (bugreport:1346) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13767 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-12- Fixed a bug (important on Battlegrounds if you are using then).zephyrus1-15/+19
* A player can do more than 1 damage to a plant per hit, if he equip only one weapon on left hand and keep the right hand clean and receives Weapon Element buff, for example the post effect of Magnum Break. On battleground it means you can destroy quickly crystals and barricades. - Also fixed the extra bonus of the leaf hand, it was using the bonus of the right hand. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13760 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-09* Fixed GX's skill level modifier is missingInkfish1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13745 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-07* Fixed splash damage from Baphomet Card might miss. [Inkfish]Inkfish1-30/+28
* Check if group unit is expired before processing it. (bugreport:3054) [Inkfish] * Fixed Grand Corss outdated behavior (bugreport:1590) [Inkfish] - use new damage formula - DEF is reduced to 2/3 during cast time - block shields switching within attack duration - monsters don't damage themselves any more - intervals between hits are 300ms git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13736 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-25* Fixed Monster Spiral Pierce not being reduced by Ghostring CardPlaytester1-2/+11
- it is forced neutral as its a MISC skill for monsters and doesn't take weapon element git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13702 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-25Added an int64 typecast to both the acid demonstration equation (which ↵ultramage1-3/+3
couldn't handle 1000-ish stats), and the misc damage reduction code (followup to r13694). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13700 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-24Fixed a small typo I did in my last Spiral Pierce fix, thanks to Inkfish for ↵Playtester1-1/+1
pointing it out (bugreport:3013) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13697 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-24* Lil fix for my last commit. Sorry :)akrus1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13696 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-24* Fixed Acid Demonstration (and probably some other skills) working wrong on ↵akrus1-1/+1
high-rate servers (thanks to [Funt] for the idea) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13694 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-16- Corrected the attack_attr_none setting to behave as it should: for those ↵skotlex1-2/+3
whom it is set, their "innate" attack element is "not elemental", meaning it deals 100% against all elements (rather than making only NEUTRAL attacks become not elemental). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13676 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-15* Monster Spiral Pierce is now a ranged misc attackPlaytester1-3/+4
- it always gets blocked by Pneuma, but never by Safety Wall - Defender doesn't reduce its damage - Range-Def item bonuses reduce its damage git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13672 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-29- Implementing official battleground "emblem" crossed swords icon.zephyrus1-2/+0
- Removing the custom guild packets from Battleground as they are not needed anymore. - Scripts updated. - In this way, you get "battle cursor" over your same team, but that's how official does. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13635 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-24* Added support for new status change packet, uses new setting ↵Sara1-0/+1
display_status_timers in client.conf. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13613 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-04Fixed a crash if for some reason a mob uses Blade Stop.ultramage1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13567 54d463be-8e91-2dee-dedb-b68131a5f0ec