summaryrefslogtreecommitdiff
path: root/src/map/battle.c
AgeCommit message (Collapse)AuthorFilesLines
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>
2015-02-13Fixed Bug#8531malufett1-1/+13
-http://hercules.ws/board/tracker/issue-8531-skill-rapid-smiting-bug/?gopid=24563#entry24563 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-02-13Fixed Bug#8519malufett1-3/+5
-http://hercules.ws/board/tracker/issue-8519-ranger-skill-fear-breeze-completely-disables-crit/?gopid=24522 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-02-02Follow-up to 486ec86Haru1-1/+0
Removed unnecessary 'fall through' comment. Signed-off-by: Haru <haru@dotalux.com>
2015-01-30Missing breakNihadm891-0/+1
Lightning Spear of Ice
2015-01-30Fixed Bug#8416malufett1-1/+1
-http://hercules.ws/board/tracker/issue-8416-geneticcart-tornado/?gopid=23982#entry23982 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-01-23Cleaned up spirit charms implementation (optimized memory and CPU usage)Haru1-37/+30
Signed-off-by: Haru <haru@dotalux.com>
2015-01-20Minor fixes and tweaks suggested by cppcheckHaru1-21/+23
- Variable scopes reduced - Parenthesized ambiguous expressions - Removed or added NULL checks where (un)necessary - Corrected format strings - Fixed typos potentially leading to bugs Signed-off-by: Haru <haru@dotalux.com>
2015-01-18For bugreport 8397 (incomplete solution)shennetsind1-1/+12
Certain skills bypass invincibility http://hercules.ws/board/tracker/issue-8397-5-secs-invulnerability-on-positivesupportive-aoe-buff/ Signed-off-by: shennetsind <ind@henn.et>
2015-01-18Replacing rand leftovers with the mt19937arshennetsind1-5/+5
Signed-off-by: shennetsind <ind@henn.et>
2015-01-18Fixing 38 issuesshennetsind1-1/+7
Addressing out of bounds read/write, pointless null checks on already deferenced variables, dead code. Special Thanks to 4144 and Haruna! Signed-off-by: shennetsind <ind@henn.et>
2015-01-1727 Fixesshennetsind1-1/+2
Addressing out of bounds read/write, pointless null checks on already deferenced variables. Special Thanks to 4144 and Haruna! Signed-off-by: shennetsind <ind@henn.et>
2015-01-17Another ~10 Fixesshennetsind1-1/+1
Addressing out of bounds read/write. Special Thanks to 4144 and Haruna! Signed-off-by: shennetsind <ind@henn.et>
2015-01-1710 Distinct fixesshennetsind1-1/+1
Addressing out of bounds read-write. Special Thanks to 4144, Haruna! Signed-off-by: shennetsind <ind@henn.et>
2015-01-10Extend battle.c for using custom skills from plugins.Andrei Karas1-0/+30
2015-01-06Fixed LK_SPIRALPIERCE & NJ_TATAMIGAESHI change in damage output. Thanks to Michimalufett1-11/+12
Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2014-12-31Remove useless checks.Andrei Karas1-1/+1
2014-12-31Add some missing null pointer checks after automatic checks.Andrei Karas1-0/+2
2014-12-28Follow up@990c25267aeefe4d792bf941a366a6603afcb42bmalufett1-1/+3
-sorry PRE-RE users I always forget about you..:D Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>