summaryrefslogtreecommitdiff
path: root/src/map/battle.c
AgeCommit message (Collapse)AuthorFilesLines
2013-08-22Fixed Bug #7652shennetsind1-24/+24
damage storage has been changed from int32 to int64 within areas where it could otherwise modified beyond the limit and get screwed up, this solves all related problems within any skills, not only asura. http://hercules.ws/board/tracker/issue-7652-asura-strike-overdamage/ Signed-off-by: shennetsind <ind@henn.et>
2013-07-31Merge pull request #71 from HerculesWS/permission-cache-fixPiotr Hałaczkiewicz1-2/+2
Permission cache overhaul * Reworked group permission caching in session data (follow-up to cd45c30ab2dcc44bfbfac283d15bb09b3d4644bc) * Removed duplicated information from session data in favor of direct pointer to group settings. * Added getters for all group data required to process permissions and related stuff. * Added new functions to PC interface and updated calls everywhere. * Extracted function to set new group for a player (used at login, group config reload, manual adjustment of group). * Moved command permission config parsing to atcommand module. * Improved dummy map session handling. * Since it's required for all map sessions to have a valid group, dummy sessions are now created by a designated function. * Updated related code that uses dummy sessions (console `gm use` and script `atcommand`, `useatcmd`). * Various minor improvements and cleanups. * Eliminated some global variables related to loading atcommand permissions for group by passing them directly to function. * Moved definition of global array holding PC permission names from header file to source file. * Streamlined destuction of atcommands database to use DBApply helper function instead of DBIterator. * Replaced hardcoded position of console dummy session with defines from mapindex.h (thx Haruna for pointing it out). * Removed fixed length restriction on group names.
2013-07-31Fixed Bug#7601malufett1-2/+8
-Disabled reflect damage cap in pre-re. Fixed Bug#7606 -Where GC_CREATENEWPOISON is not working properly. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2013-07-29Permission cache overhaulPiotr Hałaczkiewicz1-2/+2
* Reworked group permission caching in session data (follow-up to cd45c30ab2dcc44bfbfac283d15bb09b3d4644bc) * Removed duplicated information from session data in favor of direct pointer to group settings. * Added getters for all group data required to process permissions and related stuff. * Added new functions to PC interface and updated calls everywhere. * Extracted function to set new group for a player (used at login, group config reload, manual adjustment of group). * Moved command permission config parsing to atcommand module. * Improved dummy map session handling. * Since it's required for all map sessions to have a valid group, dummy sessions are now created by a designated function. * Updated related code that uses dummy sessions (console `gm use` and script `atcommand`, `useatcmd`). * Various minor improvements and cleanups. * Eliminated some global variables related to loading atcommand permissions for group by passing them directly to function. * Moved definition of global array holding PC permission names from header file to source file. * Streamlined destuction of atcommands database to use DBApply helper function instead of DBIterator. * Replaced hardcoded position of console dummy session with defines from mapindex.h (thx Haruna for pointing it out). * Removed fixed length restriction on group names.
2013-07-26Follow up 144a9d0843dfe47e0b58c8857762f58ae70543c8shennetsind1-5/+10
It will no longer block the equipping of items, instead it will delay (if applicable) the item's effect until it is no longer capable of affecting the skills under the timer. Special Thanks to kyeme for the information. Signed-off-by: shennetsind <ind@henn.et>
2013-07-21Merge branch 'master' of https://github.com/HerculesWS/Herculesmalufett1-8/+8
2013-07-21Fixed Bug#7558malufett1-1/+1
-Where 'bLongAtkDef' is not working properly with physical attack. Fixed Bug#7530 -Where Masquerades affect boss monsters. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2013-07-17Added missing initialization of some functions in the homunculus interfaceHaru1-8/+8
- Fixes issue #7536 (thanks to jTynne for the report) http://hercules.ws/board/tracker/issue-7536-map-crash-july-15th/ - Minor corrections to the other interfaces as well (reordered initialization to follow the definitions, removed duplicate entry in the skill interface initialization, commented out some unused entries) Signed-off-by: Haru <haru@dotalux.com>
2013-07-11Fixed Bug#7498malufett1-2/+2
-Where RE equip atk doesn't properly update status window and negative equip atk should now affect atk. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2013-07-09Travis Report Fixesshennetsind1-27/+28
warn_unused_result shielding, dropped unused variables and fixed battle_calc_return_damage delay behavior (pointer was unchaged; resulting in the var afterwards always as 0) Special Thanks to Xgear. Signed-off-by: shennetsind <ind@henn.et>
2013-07-09Follow up 144a9d0843dfe47e0b58c8857762f58ae70543c8shennetsind1-1/+5
fixed counter going off if target died while timer was running. Signed-off-by: shennetsind <ind@henn.et>
2013-07-08Fixed missing eatk in RE.(Thanks to Michieru)malufett1-1/+1
Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2013-07-07Fixed Bug#6503malufett1-23/+36
-where SR_GENTLETOUCH_REVITALIZE is not working properly. Fixed Bug#6547 & Bug#6141 -SC_BLOODYLUST should now work properly like as official behavior. Fixed Bug#7395 -SO_SPELLFIST should now work properly. Fixed Bug#7477 -removed hidden walkdaley that makes character stop when hit even if SC_ENDURE is active. Fixed Bug#7475 -fixed error message in SA_AUTOSPELL when cancel button is pressed. Fixed Bug#7337 -MG_CHANGECART should now work properly. Fixed Bug#7474 -SC_MAELSTROM should now work properly like as official behavior.
2013-07-05Fixed Bug #7307shennetsind1-1/+7
http://hercules.ws/board/tracker/issue-7307-status-weapon-switch/ Special Thanks to kyeme, Beret. Signed-off-by: shennetsind <ind@henn.et>
2013-07-05HCache | Item Packages Updateshennetsind1-1/+1
http://hercules.ws/board/topic/1389-hcache-item-packages-update/ Signed-off-by: shennetsind <ind@henn.et>
2013-07-05Implemented real-time server stats (in and out data and ram usage), made by ↵Matheus Macabu1-1/+1
Ai4rei; thanks! Another follow up, now to fix maximum value of chatdori setting; And fixed a bug where warping to a disable map would cause the map-server to crash. Signed-off-by: Matheus Macabu <mkbu95@gmail.com>
2013-07-05Minor compliance adjustmentsshennetsind1-3/+3
Data provided by clang Signed-off-by: shennetsind <ind@henn.et>
2013-07-04Implemented official mute system. Thanks to:Matheus Macabu1-0/+1
Ai4rei/Mirei for the code; kyeme for suggesting it; Napster for updating the patch. Signed-off-by: Matheus Macabu <mkbu95@gmail.com>
2013-07-04Split use_sql_db into the three available: item_db, mob_db, mob_skill_db.Matheus Macabu1-2/+2
Signed-off-by: Matheus Macabu <mkbu95@gmail.com>
2013-07-04Adjustment #2shennetsind1-5/+11
Signed-off-by: shennetsind <ind@henn.et>
2013-07-04- Added interface iStatus (needed to renamed it because A LOT of variables ↵Susu1-136/+136
are already called 'status')
2013-07-01Merge branch 'master' of https://github.com/HerculesWS/Herculesshennetsind1-144/+143
2013-07-01Fixed Bug #7216shennetsind1-0/+1
Special Thanks to Shikazu, wouldn't have been able to identify this issue without his help! http://hercules.ws/board/index.php?app=tracker&showissue=7216 Signed-off-by: shennetsind <ind@henn.et>
2013-07-01Fixed Bug#7452malufett1-6/+6
-where SC_SUB_WEAPONPROPERTY is now properly. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2013-07-01Follow up ce5085a000ee7babb05b9e6a86410e13a75d7606malufett1-138/+137
-Thanks kyeme and Ind.:D Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2013-07-01Follow up 074662a4b30e5d380fda32fd7df2d3ae2de759e0malufett1-15/+14
-where target def card is not working properly Renewal Update: -Updated MO_EXTREMITYFIST to its official RE damage formula. -Special thanks to Awesome Yommy..:D Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2013-06-28Fixed Bug#6991malufett1-80/+98
-Where cardfix is not working properly. Thanks Kyeme Renewal Update: -updated/completed mastery fix damage factor(skills and sc). -initial implementation for new NPC skills (note: not yet functional dbs not yet updated).
2013-06-27Merge pull request #50 from Earisu/mastershennetsind1-3/+3
Chrif interface
2013-06-26Fixed Bug#7402malufett1-228/+249
-Added some missing calc in re atk. Fixed Bug#7378 -PA_GOSPEL should now clear buffs upon casting. Fixed Bug#7399 -Neutral skills should work properly with ghost type monsters. RENEWAL UPDATES: Updated some ninja & gunslinger skills to there renewal formula. Added exploit fix(RE fixed) with hunter stacking trap trick. Added some misc skills more to follow.
2013-06-26Merge branch 'master' of https://github.com/HerculesWS/HerculesSusu1-26/+45
2013-06-25Follow up 5785dbae3f513da20611e3147dadef2b9c911443shennetsind1-2/+6
Adjusted asura, special thanks to VyLow for bringing it up. Signed-off-by: shennetsind <ind@henn.et>
2013-06-25For Bug #7402shennetsind1-24/+39
Temporary measure until malufett is capable of adjusting it himself. Special Thanks to Xgear for going thru all the testing for this with me, Also Special Thanks to VyLow for making it possible for me to reproduce the issue, and Zopokx, mofo and malufett. http://hercules.ws/board/tracker/issue-7402-damage-with-reduction-cards/ Signed-off-by: shennetsind <ind@henn.et>
2013-06-25- Added chrif interfaceSusu1-3/+3
2013-06-23Official Item Group/Package/Chainshennetsind1-1/+0
http://hercules.ws/board/topic/1244-official-item-grouppackagechain/ Also Further implemented itemdb.c/storage.c interfaces, and a minor update to db2sql plugin. Signed-off-by: shennetsind <ind@henn.et>
2013-06-20Fixed an unsafe TBL_PC* cast in battle_calc_elefixHaru1-2/+2
This would cause a mapserver crash whenever the function was called by a monster attack. The issue was introduced in 03956104
2013-06-18Fixed Bug#7396malufett1-13/+11
-map crash in using GN_BLOOD_SUCKER.
2013-06-17Fixed Bug#7380malufett1-2/+2
-showprogressbar should now work as official.(Thanks Kyeme & Ryuuzaki) Fixed insane damage of Hatred Skills. (http://hercules.ws/board/topic/1110-renewal-attack/ - Thanks Axiom)
2013-06-14Merge branch 'master' of https://github.com/HerculesWS/Herculesshennetsind1-7/+14
2013-06-14Hercules WPE Freeshennetsind1-2/+3
Official Packet Obfuscation Support http://hercules.ws/board/topic/1105-hercules-wpe-free-june-14th-patch/ Signed-off-by: shennetsind <ind@henn.et>
2013-06-14Fixed Bug#7362, Bug#7363 & Bug#7355malufett1-3/+10
Fixed compilation error and server console error.
2013-06-13Fixed Bug#7359malufett1-4/+4
Map Crashed on battle_calc_return_damage.
2013-06-13Revert "Fixed pre-re build warning"shennetsind1-3/+4
This reverts commit 4b713e7e3eac34339285125d194ae4ff4627fc2a.
2013-06-13Fixed pre-re build warningshennetsind1-4/+3
Special Thanks to ossi0110 Signed-off-by: shennetsind <ind@henn.et>
2013-06-13Fixed Bug #7346shennetsind1-12/+34
http://hercules.ws/board/tracker/issue-7346-battlec-error Signed-off-by: shennetsind <ind@henn.et>
2013-06-13Fixed unix buildshennetsind1-4/+5
Signed-off-by: shennetsind <ind@henn.et>
2013-06-13Hercules Renewal Phase : Renewalmalufett1-2392/+2837
Rename SC names to eagis standard. Implement SC Configuration.(see db/sc_config.txt) Skill updates and fixes. Some code optimization. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2013-06-09Fixed Bug #7308shennetsind1-2/+2
Special Thanks to kyeme, mkbu95! http://hercules.ws/board/tracker/issue-7308-guild-aura-on-ally/ Signed-off-by: shennetsind <ind@henn.et>
2013-06-08Follow up d73783f22b2bb881aab74524d153d89a5932a199shennetsind1-1/+1
Adjusting party.c interface name to adhere with the rest (pretty much we try to make it as short as we can, and being there were no conflicts we saw no reason to maintain the 'i') Signed-off-by: shennetsind <ind@henn.et>
2013-06-08Follow up d73783f22b2bb881aab74524d153d89a5932a199shennetsind1-84/+84
Adjusting pc.c interface name to adhere with the rest (pretty much we try to make it as short as we can, and being there were no conflicts we saw no reason to maintain the 'i') Signed-off-by: shennetsind <ind@henn.et>
2013-06-07Hercules Renewal Phase One : pc, party, map, timerSusu1-139/+139
Added iPc, iParty, iMap, iTimer to HPM exported interfaces