summaryrefslogtreecommitdiff
path: root/src/map/skill.c
AgeCommit message (Collapse)AuthorFilesLines
2020-04-05Merge pull request #2657 from Kenpachi2k13/autocast_clean_upHaru1-93/+88
Clean up auto-cast related code
2020-04-05Merge pull request #2660 from Kenpachi2k13/skill_check_ammo_typeHaru1-4/+2
Make skills check if equipped ammunition type is appropriate for equipped weapon
2020-04-05Merge pull request #2658 from Kenpachi2k13/new_status_changesHaru1-0/+6
Add new status changes and update related items
2020-03-15Make skills check if equipped ammunition type is appropriate for equipped weaponKenpachi Developer1-4/+2
2020-03-14Make skills cast by Improvised Song ignore all requirementsKenpachi Developer1-5/+7
2020-03-14Remove IT_DELAYCONSUME related auto-cast codeKenpachi Developer1-19/+0
First of all: In official servers, skill casting item are consumed immediately and thus IT_DELAYCONSUME should not be used for those items And additionally these code blocks are obsolete, because of the way how skill casting items work. * If the item won't check the skill's requirements, the code block to delete the item of type IT_DELAYCONSUME isn't even executed. * If the item does check the skill's requirements, the check is done prior to the skill casting which would be the same as using IT_USABLE.
2020-03-14Remove skillitem and skillitemlv variables and use ↵Kenpachi Developer1-12/+8
map_session_data->autocast.skill_id/_lv instead
2020-03-14Remove obsolete auto-cast type validation from ↵Kenpachi Developer1-18/+14
skill_check_condition_castbegin() function
2020-03-14Use map_session_data->autocast.type instead of skillitem variable to check ↵Kenpachi Developer1-13/+13
for auto-cast skills
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>