summaryrefslogtreecommitdiff
path: root/src/map/battle.c
AgeCommit message (Collapse)AuthorFilesLines
2020-03-14Remove map_session_data->state.autocast and use ↵Kenpachi Developer1-13/+1
map_session_data->autocast.type instead
2020-03-14Add map_session_data->autocast.type assignmentsKenpachi Developer1-0/+12
2020-03-08Do not split assignment on commaLeo Pflug1-2/+2
2020-03-08Refactor code using directions to use enum unit_dirskyleo1-12/+11
This removes a lot of duplicated code, especially related to people not using the arrays dirx and diry. Assertions for whenever these arrays are used have been added as well, to ensure valid index range. Some trailing white space has been removed as well.
2020-03-08Merge pull request #2612 from skyleo/basilica_target_checkHaru1-4/+5
Fix Basilica unintentionally restraining boss mobs
2020-02-06Fix W_RIFLE damage calculation being too low than intendedskyleo1-0/+1
Rifle type weapons had a broken call to battle_calc_base_damage2 since they were passing the flag value 18 and flag&16 != 0 as stated by the documentation shall only be the case when no gun or bow is equipped. This bug existed since 2006 and got introduced by the commit e24d467f1ae47475e3441d7453f549e22f46f541 .
2020-01-16Update src/map/battle.cskyleo1-1/+1
Co-Authored-By: Kenpachi2k13 <Kenpachi.Developer@gmx.de>
2020-01-16Update src/map/battle.cskyleo1-1/+1
Co-Authored-By: Kenpachi2k13 <Kenpachi.Developer@gmx.de>
2020-01-14Fix Basilica unintentionally restraining boss mobsskyleo1-4/+5
Thanks to Marida from oRO Dev Team for fixing this.
2020-01-13Update copyright headers for year 2020Haru1-2/+2
Signed-off-by: Haru <haru@dotalux.com>
2019-11-26Fix racial crit bonuses not being affected by katar crit bonusskyleo1-2/+6
2019-11-06Dehardcode Status IconsAsheraf1-1/+1
2019-10-19Merge pull request #2561 from skyleo/slave_anklesnare_fixHaru1-1/+2
Make slave mobs react to master's chase target
2019-10-18Make slave mobs react to master's chase targetskyleo1-1/+2
This fixes slaves not chasing after master's chase target, when master was immobilized by an Ankle Snare for example midway.
2019-10-08Removed jAthena 1082 legacy code related to Castle Defense Rate.kisuka1-6/+0
2019-07-28Merge pull request #2507 from Emistry/homun_expHaru1-0/+1
Update Homunculus obtain EXP from master
2019-07-28Merge pull request #2510 from Emistry/mobdb_dmg_taken_rateHaru1-0/+12
Update mob_db - DamageTakenRate field
2019-07-28Update Homunculus obtain EXP from masterEmistry Haoyan1-0/+1
- homunculus will obtain a portion or full EXP from master. - fixes #2313
2019-07-24Update mob_db - DamageTakenRate fieldEmistry Haoyan1-0/+12
- adjust the damage taken by monster. (default = `100 = 1x`) - ref: https://github.com/idathena/trunk/commit/e267d2e2dada6196b479a6f2f35e9d25291ef22b
2019-07-14Added battle config autoloot_adjustEmistry Haoyan1-0/+1
Added battle config autoloot_adjust that allows autoloot to take player drop penalties and bonuses into account.
2019-05-06Merge pull request #2232 from guilherme-gm/201810-trap-visibilityHaru1-1/+6
Added option to make hunter traps invisible
2019-05-06Add configurable limits for attack related functionsAndrei Karas1-2/+16
2019-05-05Implement Refinery UIIbrahim Zidan1-0/+14
Signed-off-by: Ibrahim Zidan <brahem@aotsw.com>
2019-05-05Add option for drop connection on disconnect packet from clientAndrei Karas1-0/+1
New configuration option drop_connection_on_quit.
2019-04-20Added support for mobs to drop items with Random OptionsGuilherme G. Menaldo1-0/+1
2019-04-07Add ZC_PING and CZ_PING packetsAndrei Karas1-0/+2
For supported packet version, from now server send ping packets to client.
2019-04-07Fix possible null pointersAndrei Karas1-1/+1
2019-04-07Added configuration to enable/disable achievement systemDastgir1-0/+1
2019-02-28Adds configuration for Magic Rod behavior (official/eAthena).EyesOfAHawk1-0/+1
2019-02-11Change type for class variables from short to intAndrei Karas1-2/+2
2018-11-14Merge pull request #1233 from dastgirp/r5-defenseHaru1-30/+35
Fixed defense overflow exploit
2018-11-14Clarify the code around the def/flee reduction for multiple attackersHaru1-31/+35
This is just a clarification/sanitization, no functional changes intended. Signed-off-by: Haru <haru@dotalux.com>
2018-11-14Use an enum as flag for status->heal() and related functionsHaru1-3/+3
This introduces the `enum status_heal_flag`. No functional changes are made. Signed-off-by: Haru <haru@dotalux.com>
2018-11-14Fixes #889 & #840Jedzkie1-0/+1
- Novice classes will never go below 50% hp when died. - Other classes will show 1 HP rather than 0 when died. - Added battle configuration. Signed-off-by: Haru <haru@dotalux.com>
2018-10-21Merge pull request #2182 from guilherme-gm/201808-trapfixHaru1-0/+35
Fixes some issues with traps
2018-10-20Added setting to keep traps invisible when triggeredGuilherme G. Menaldo1-1/+2
2018-10-20add a warning for `traps_setting` in battle confgumi1-0/+4
2018-10-20Added option to make hunter traps invisibleGuilherme G. Menaldo1-1/+1
2018-10-13Fixed Issue #2177Dastgir1-0/+2
If Item Price is 0, it is now changed to 1.
2018-08-30Makes trap damage possible to be reflectedGuilherme G. Menaldo1-0/+35
2018-08-04Fixed defense overflow exploitDastgir1-0/+1
* The defense penalty for being attacked by many enemies at the same time can no longer make DEF go negative * Fixed two potential overflow exploits When being hit by a lot of monsters, your DEF will become negative and then eventually overflow, making you almost invincible. On official servers the simultaneous attacker count is limited to 22. So at max, your def is reduced by ((22-2)*5%) = 100%. So it should neither be able to make your DEF negative nor cause an overflow. Merge from https://github.com/rathena/rathena/commit/590f42cd15c58de78cff8be6053109852375bce1#diff-d96b6365b4bdad78139e676d6e7e3295R4589
2018-07-24Merge pull request #2088 from guilherme-gm/fix-ghostmonstersHaru1-0/+1
Fixed monsters not disappearing from some clients upon death
2018-07-12Fixed clearunit packet not being sent to clients going out of the view range ↵Guilherme G. Menaldo1-0/+1
when monster dies
2018-07-12Split btype and item_id parameters in function clif_skill_fail.Andrei Karas1-4/+4
2018-07-01Change functions to static where possible (Part 4 - map)Haru1-60/+112
This fixes issues with plugins defining symbols with the same names Signed-off-by: Haru <haru@dotalux.com>
2018-06-25Implemented Pet AutofeedingDastgir1-0/+1
2018-05-04Add setpcblock & checkpcblock script commandsAnnieRuru1-1/+1
thanks to @MishimaHaruna for the updated syntax
2018-04-25Merge pull request #2023 from MishimaHaruna/remove-stat-serverHaru1-171/+2
Remove stat server
2018-04-23Merge pull request #2005 from guilherme-gm/guildskillcdHaru1-1/+1
Allow guild skills cooldown to continue when logged out
2018-04-22Remove the stat-reporting mechanismHaru1-171/+2
Signed-off-by: Haru <haru@dotalux.com>