From cc5425c2bd90bfc41dea20d77217d33d6d50d290 Mon Sep 17 00:00:00 2001 From: Aleos Date: Thu, 22 Apr 2021 08:56:41 -0400 Subject: [PATCH] Fixes Ancilla and Spore Explosion consuming twice (#5882) * Fixes Ancilla consuming two Blue Gemstones. * Fixes Spore Explosion consuming another Mushroom Spore when the second attack hits. --- db/re/skill_db.yml | 2 +- src/map/skill.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db/re/skill_db.yml b/db/re/skill_db.yml index d137bcbd59..de9e4a7dfc 100644 --- a/db/re/skill_db.yml +++ b/db/re/skill_db.yml @@ -19755,7 +19755,7 @@ Body: SpRateCost: -10 ItemCost: - Item: Blue_Gemstone - Amount: 1 + Amount: 0 - Id: 2040 Name: AB_ADORAMUS Description: Adoramus diff --git a/src/map/skill.cpp b/src/map/skill.cpp index c3d8008cb0..dad5bd012d 100755 --- a/src/map/skill.cpp +++ b/src/map/skill.cpp @@ -5248,7 +5248,7 @@ int skill_castend_damage_id (struct block_list* src, struct block_list *bl, uint if (skill_id == RA_ARROWSTORM) status_change_end(src, SC_CAMOUFLAGE, INVALID_TIMER); - if( skill_id == AS_SPLASHER ) { + if( skill_id == AS_SPLASHER || skill_id == GN_SPORE_EXPLOSION ) { map_freeblock_unlock(); // Don't consume a second gemstone. return 0; }