summaryrefslogtreecommitdiff
path: root/src/map/battle.c
AgeCommit message (Collapse)AuthorFilesLines
2015-12-15Added GPL-compliant header to all sources and build scriptsHaru1-4/+20
Signed-off-by: Haru <haru@dotalux.com>
2015-12-14Added official effect of Mora Berry.Jedzkie1-6/+18
Signed-off-by: Haru <haru@dotalux.com>
2015-12-13- Fixed #723 now it's possible to retrieve Battle Config Settings from ↵Your Name1-6/+14
plugins into scripts - Fixed Possible Crash when null parse function pointer passed to HPMi->addConf - Now it's possible to use same parse function for all config entries - Now Battle Config entries must have a return function
2015-12-06Refactored/fixed race handling for bonuses that store it as a bitmaskHaru1-16/+16
- The following bonuses now work correctly with RC_DemiPlayer, RC_NonDemiPlayer, RC_NonDemiHuman, RC_Nonplayer: * bIgnoreDefRace * bIgnoreMdefRace * bDefRatioAtkRace * bAddMonsterDropChainItem (bonus3) * bAddMonsterDropItem (bonus3) - A new function (map->race_id2mask) is provided, to easily and efficiently generate a bitmask from a race ID. - The RC_ALL race ID is mapped to RC_BOSS and RC_NONBOSS, for backwards compatibility. Signed-off-by: Haru <haru@dotalux.com>
2015-11-18Merge pull request #837 from AnnieRuru/request_5Haruna1-0/+1
Add new config to allow player vend/chat room nearby hidden npc (#834)
2015-11-14Add option for fix hit after warp.Andrei Karas1-4/+8
Introduced new configuration option: fix_warp_hit_delay_abuse. Official way is to set this option to false.
2015-10-29Add new config to allow player vend/chat room nearby hidden npc (#834)AnnieRuru1-0/+1
credit to Emistry for the idea
2015-10-25Merge pull request #516 from milky-milk/pre-re_defenderHaruna1-0/+5
Fixed defending aura bug in pre-renewal
2015-10-22Removed support for the deprecated SQL item, mob, mob_skill databases.Haru1-10/+3
Follow-up to 84e02ac28fbb15c58d0a0f8a916b49663198b05b Signed-off-by: Haru <haru@dotalux.com>
2015-10-19rename malloc.c/h to memmgr.Andrei Karas1-1/+1
2015-10-07Deleted dublicateMilk1-3/+2
2015-09-28Fixes Maelstrom crashing serverNihadm891-1/+1
Bug Report: https://github.com/HerculesWS/Hercules/issues/731
2015-09-26Merge pull request #579 from csnv/minfixesHaruna1-4/+10
Corrected critical bonus display
2015-09-25More aggressive whitespace cleanup. Follow up to 51329e6Haru1-15/+7
Signed-off-by: Haru <haru@dotalux.com>
2015-09-24Add bl parameter to getcell functions.Andrei Karas1-1/+1
2015-09-18Clarified the intent of several assignments inside conditional expressionsHaru1-6/+6
Signed-off-by: Haru <haru@dotalux.com>
2015-09-17corrected some white spaces and added missing EOL.Frost1-2/+0
Split from #558 (and added a few more corrections) Signed-off-by: Haru <haru@dotalux.com>
2015-09-17Added Configuration in enabling/disabling monster hp bar on new clients.Frost1-0/+1
Closes #558 Signed-off-by: Haru <haru@dotalux.com>
2015-09-14Add missing checks into battle.c.Andrei Karas1-9/+51
2015-09-10Add to path search functions source bl for plugins usage.Andrei Karas1-1/+1
2015-09-08Fixed a failed assertion in skill_get_ele. Fixes #708Haru1-17/+20
- Thanks to AnisotropicDefixation Signed-off-by: Haru <haru@dotalux.com>
2015-08-15HPM compatibility improvementsHaru1-0/+1
Improved compatibility, portability and standards conformance. - Since it is not possible to portably and reliably re-use the core's symbols in plugins, symbols are no longer exported unless explicitly required, in the UNIX builds. This mimics the Windows behavior and adds HPM compatibility to OSes such as FreeBSD. Credits to Andrei Karas for making this possible. - For convenience, it is no longer necessary to call GET_SYMBOL, since the plugin will automatically import all the available symbols when it's loaded, depending on the included headers. - Plugins are now supposed to include the "common/hercules.h" header before including anything else. Incluing common/HPMi.h, common/cbasetypes.h or conf/core.h is no longer necessary, as those are guaranteed to be automatically included by hercules.h. - HPM API version bumped to 1.1. Signed-off-by: Haru <haru@dotalux.com>
2015-08-09Fixed an issue caused by duel-song interactionHaru1-1/+1
- Fixes #546 (follow-up to 127f9b52a4030a655564584b95b7c10dfdcb04e6) - Special thanks to kyeme, Mordekaiser Signed-off-by: Haru <haru@dotalux.com>
2015-07-12Remove useless checks from map server.Andrei Karas1-3/+3
2015-07-03Corrected critical bonus displaycsnv1-4/+10
- Fixes #573
2015-06-19Removed ".." from include directivesHaru1-30/+30
- Include directives are now directory-independent. - This will allow building plugins from other directories in future. Signed-off-by: Haru <haru@dotalux.com>
2015-06-12RC_Player, RC_DemiPlayer, RC_NonPlayer, RC_NonDemiPlayer, RC_All and Ele_All ↵Dastgir1-20/+4
implemented (ref:Herc@9d1fe3cd3855bb973c55bdf98909c25bb80ee97a)
2015-06-01Replaced some of the hardcoded values with constants (map)Haru1-41/+57
- Replaced several hardcoded values with the appropriate enums. - Added documentation for some hardcoded values that haven't been replaced by enums (yet) - Minor code legibility improvements. Signed-off-by: Haru <haru@dotalux.com>
2015-05-31Fixed Bug#8673malufett1-23/+19
-http://hercules.ws/board/tracker/issue-8673-gt-energy-gain/?gopid=25265#entry25265 -Fixed some skills related to spiritball, should now work like official. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-05-28Fixed Bug#8694malufett1-0/+4
-http://hercules.ws/board/tracker/issue-8694-npc-earthquake-wrong-type/?gopid=25380#entry25380 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-05-26Fix Vacuum Extrem resistanceMichieru1-0/+2
In renewal Safetywall Hits Blocked depending also on Skill Level
2015-05-26Another batch of corrected skill level checkmalufett1-1/+1
-Followup@dbaff8bdff2552c94d83e71249ae9e2117f62a72 -Added missing code from previous commit@027f124cbb96bb99d00bc31ad51345024edadf66 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-05-17Fixed some issues detected by coverity scanHaru1-4/+5
Signed-off-by: Haru <haru@dotalux.com>
2015-05-13Fixed defending aura bug in pre-renewal ↵milky-milk1-0/+6
(http://hercules.ws/board/tracker/issue-8560-pre-renewal-defending-aura-bug/)
2015-05-12Follow-up to fff2194Haru1-10/+11
Related: http://hercules.ws/board/tracker/issue-8672-map-server-error/ Signed-off-by: Haru <haru@dotalux.com>
2015-05-03Fixed Bug#8650malufett1-1/+3
-http://hercules.ws/board/tracker/issue-8650-minstrel-poem-of-netherworld-or-despair-song-skillleffect/?gopid=25083#entry25083 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-04-23Fixed Bug#8474malufett1-5/+12
-http://hercules.ws/board/tracker/issue-8474-elemental-damage-amplifier-doesnt-apply-to-cart-cannon/ Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-04-01Fixed Bug#8601malufett1-3/+3
-http://hercules.ws/board/tracker/issue-8601-chemical-protection/?gopid=24866#entry24866 Fixed proper skill fail message when bullet runs out.. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-03-19Follow up 145a4fe644c4fe856ba6f83086e8ee5075caad99shennetsind1-0/+2
Thanks to Mordekaiser for pointing this scenario to us. Signed-off-by: shennetsind <ind@henn.et>
2015-03-19Follow up@210c963d2851eb880ba3560998ee984d942cde19malufett1-1/+3
-Thanks to michi and chatchanunn Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-03-19Fixed Bug 8582shennetsind1-2/+0
Solves an issue where an skill unit left-area event would not triggered due to duels. Special Thanks to Haruna, kyeme. http://hercules.ws/board/tracker/issue-8582-infinite-songs/ Signed-off-by: shennetsind <ind@henn.et>
2015-03-17Follow up@c2286f82e0843eedc5db04ca26ffd16fae9d6955malufett1-8/+2
-remove unnecessary modification(issue:469). Thanks to Dastgir and Michi Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-03-16RENEWAL Updates:malufett1-37/+103
-AM_DEMONSTRATION and AM_ACIDTERROR is now using RE formula. -Fixed damage modifiers of some skills. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-03-15Fixed Bug#8569malufett1-0/+4
-http://hercules.ws/board/tracker/issue-8569-asura-strike/?gopid=24715#entry24715 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-03-11RENEWAL Updates:malufett1-61/+145
-Fixed card bonuses related to to ATK.(Added 'bRaceTolerance'). Thanks Michi for the support. -Fixed Renewal EDP. Special thanks to Awesome Yommy <3 -Enabled 'display_skill_fail' since '/skillfail' is already available in the client Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-02-23Add battle config option check_occupied_cells.Andrei Karas1-0/+1
If set check_occupied_cells to 0 it will allow walk to occupied cells And it heavy reduce CPU usage on walking.
2015-02-23Extend official_cell_stack_limit option.Andrei Karas1-1/+1
Now if this option is zero server will not count objects before comparing with official_cell_stack_limit. If set official_cell_stack_limit to zero it will heavy reduce CPU usage.
2015-02-13Merge branch 'master' of github.com:HerculesWS/Herculesshennetsind1-12/+19
2015-02-13Fixed alchemist marine sphere causing double deletion on renewalshennetsind1-3/+3
Special Thanks to Haruna, Michieru.
2015-02-13Fixed Bug#8529malufett1-12/+19
-http://hercules.ws/board/tracker/issue-8529-npc-earthquake-damage-calculation-bugged-and-possibly-wrong/?gopid=24559#entry24559 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>