summaryrefslogtreecommitdiff
path: root/src/map/skill.c
AgeCommit message (Collapse)AuthorFilesLines
2020-03-14Remove map_session_data->state.itemskill_* and use ↵Kenpachi Developer1-3/+3
map_session_data->autocast.itemskill_* instead
2020-03-14Remove skill_is_item_skill() function and use ↵Kenpachi Developer1-20/+3
map_session_data->autocast.type instead
2020-03-14Remove map_session_data->state.abra_flag and use ↵Kenpachi Developer1-5/+3
map_session_data->autocast.type instead
2020-03-14Remove map_session_data->state.autocast and use ↵Kenpachi Developer1-15/+5
map_session_data->autocast.type instead
2020-03-14Add skill_validate_autocast_data() functionKenpachi Developer1-0/+26
2020-03-14Remove misplaced pc_autocast_clear() function callKenpachi Developer1-5/+0
2020-03-14Add pc_autocast_clear() function callsKenpachi Developer1-5/+5
2020-03-14Rename function pc_itemskill_clear() to pc_autocast_clear()Kenpachi Developer1-1/+1
2020-03-14Add map_session_data->autocast.skill_id/_lv assignmentsKenpachi Developer1-0/+4
2020-03-14Add map_session_data->autocast.type assignmentsKenpachi Developer1-0/+24
2020-03-14Add SC_SKF_CAST status changeKenpachi Developer1-0/+4
2020-03-14Add SC_VITALIZE_POTION status changeKenpachi Developer1-0/+2
2020-03-09Merge pull request #2648 from Kenpachi2k13/itemskill_fixHaru1-3/+3
Fix itemskill() script command
2020-03-08Change the name of all functions which got their return-value meaning changedskyleo1-7/+7
2020-03-08Execute map->freeblock_unlock() if assertion failsLeo Pflug1-6/+24
2020-03-08Undo removal of attack->dir_unknownLeo Pflug1-1/+7
2020-03-08Change returning error-code in unit->walktoxy to obey code-style guidelinesskyleo1-1/+1
2020-03-08Refactor code using directions to use enum unit_dirskyleo1-120/+105
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-06Change validation of itemskill_check_conditions according to new nameKenpachi Developer1-3/+3
2020-03-06Rename itemskill_no_conditions to itemskill_check_conditionsKenpachi Developer1-3/+3
2020-02-09Added skill_is_item_skill() function.Kenpachi Developer1-3/+20
2020-02-09Added pc_itemskill_clear() function.Kenpachi Developer1-0/+5
2020-02-09Moved the WZ_EARTHSPIKE check for TK_SPTIME skill from ↵Kenpachi Developer1-10/+1
skill_check_condition_castbegin() to pc_useitem().
2020-02-09Implemented the consumption of 10 SP when using Earth Spike Scroll while ↵Kenpachi Developer1-2/+5
SC_EARTHSCROLL is active.
2020-02-09Fixed skill conditions check and <flag> parameter in itemskill() script command.Kenpachi Developer1-23/+33
* itemskill() script command should check for the skill's conditions and also consumes them. SP are not consumed. * The same applies to Hocus-pocus skill. Conditions should be checked and consumed, SP are not consumed. * This was bugged for more than 6 years now. See linked bug report and commits. Related bug: * https://herc.ws/oldboard/tracker/issue-7210-itemskill-command-does-not-check-for-required-items/ Related commits: * https://github.com/HerculesWS/Hercules/commit/b864056b8d088660fca9129bddad477732ed8df9 * https://github.com/HerculesWS/Hercules/commit/07272f7a16db87970583286db03167ca79604a69
2020-02-09Merge pull request #2586 from Asheraf/madostatueffectHaru1-1/+1
Implement support for switching madogear type
2020-02-09Merge pull request #2618 from Kenpachi2k13/issue#2558Haru1-18/+25
Updated PR_STRECOVERY to only cure status effects if defence element is not Undead.
2020-02-09Change unload NPC behavior to kill mobs that were spawned by unloaded NPC ↵Kenpachi Developer1-6/+6
(non-permanent monster spawns) [Issue #2530] Mobs spawned by NPC will be removed on @reloadnpc, @unloadnpc, and @unloadnpcfile. Additionally OnNPCUnload NPC label was added, to revert other changes made by NPC. For example set/removed mapflags or added mob drops.
2020-02-09Merge pull request #2248 from guilherme-gm/201810-asurafixHaru1-10/+24
Minor fixes to Asura Strike
2020-02-09Merge pull request #2596 from dastgirp/skill_idx_refactorHaru1-43/+43
Changed logic of skill_get_index
2020-02-08Fixed the number of cells that 'Asura Strike' caster walks when it failsGuilherme G. Menaldo1-8/+18
2020-02-08Makes Asura Strike caster not change look direction at the end of the skillGuilherme G. Menaldo1-1/+4
2020-02-08Fixed duplicated 'Skill Failed' message on Asura StrikeGuilherme G. Menaldo1-1/+2
2020-02-02Changed logic of skill_get_indexDastgir1-43/+43
skill_get_index can be edited easily to add custom skills
2020-02-02Applied code style to PR_STRECOVERY.Kenpachi Developer1-11/+14
2020-02-02Updated PR_STRECOVERY to only cure status effects if target's defence ↵Kenpachi Developer1-7/+11
element is not Undead.
2020-01-29Implement support for switching madogear typeAsheraf1-1/+1
2020-01-13Update copyright headers for year 2020Haru1-2/+2
Signed-off-by: Haru <haru@dotalux.com>
2019-12-15Merge pull request #2589 from HerculesWS/tarot_card_fixHaru1-1/+1
Fix Tarot Card breaking equipment behavior
2019-12-01Modified skill_cooldown_save() to ignore guild skills if ↵Kenpachi Developer1-9/+9
guild_skill_relog_delay is set to 1. If guild skills are not ignored when guild_skill_relog_delay is set to 1, the map server will throw error messages if the guild master relogs while cooldown. Also applied Hercules coding style to skill_cooldown_save(). See https://github.com/HerculesWS/Hercules/issues/2591
2019-11-27Fix Tarot Card breaking equipment on Garment and Shoe locations however on ↵Ibrahim Zidan1-1/+1
Aegis it only target Left Hand (Shield), Armor and Helm Signed-off-by: Ibrahim Zidan <brahem@aotsw.com>
2019-11-17Merge pull request #2577 from Asheraf/dehardcodestatusiconsHaru1-8/+8
Dehardcode Status Icons
2019-11-06Dehardcode Status IconsAsheraf1-8/+8
2019-10-29Dehardcode combo skills checkAsheraf1-21/+9
2019-10-20Merge pull request #2547 from guilherme-gm/201910-dehardcode-dbHaru1-1/+1
Dehardcode DB files path
2019-10-19Merge pull request #2556 from skyleo/homunculus_fixesHaru1-5/+13
Homunculus skill fixes
2019-10-18Merge pull request #2553 from skyleo/magnum_break_delay_fixHaru1-4/+0
Correct Magnum Break delay
2019-10-10Fix Chaotic Blessings never healing the enemyskyleo1-4/+12
It has a chance to roll for enemy and heal the enemy, While calculating the chance was correct, it was getting the enemy with battle->check_target. But unit->stop_attack has been called before in unit->skilluse_id2, making battle->check_target return NULL at that point, since it has no attack target anymore. So it defaulted to heal the Homunculus itself, instead of the enemy.
2019-10-10Fix Homunculus skill failure message not displaying required itemskyleo1-1/+1
2019-10-09Correct Magnum Break delayskyleo1-4/+0
Credit to: https://github.com/rathena/rathena/commit/fc2c6e02