Issue information

Issue ID
#4085
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Mar 3, 2010 17:40
Last Post
Michi
Aug 8, 2014 17:31
Confirmation
N/A

Hercules Elf Bot - Mar 3, 2010 17:40

Originally posted by [b]RoM[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=4085

Simple, when you're in a Duel, you can't use Absorb Spirit Sphere on your opponent.

Here's the fix:
CODE
Index: skill.c
===================================================================
@@ -3917,7 +3917,7 @@

    case MO_ABSORBSPIRITS:
        i = 0;
-        if (dstsd && dstsd->spiritball && (sd == dstsd || map_flag_vs(src->m)) && (dstsd->class_&MAPID_BASEMASK)!=MAPID_GUNSLINGER)
+        if (dstsd && dstsd->spiritball && (sd == dstsd || map_flag_vs(src->m) || (sd->duel_group && sd->duel_group == dstsd->duel_group)) && (dstsd->class_&MAPID_BASEMASK)!=MAPID_GUNSLINGER)
        {    // split the if for readability, and included gunslingers in the check so that their coins cannot be removed [Reddozen]
            i = dstsd->spiritball * 7;
            pc_delspiritball(dstsd,dstsd->spiritball,0);

Michi - Aug 8, 2014 17:31

Fixed in: [url="https://github.com/HerculesWS/Hercules/commit/73089923e91b88bb2470cd7abab8616b5e68d374"]https://github.com/HerculesWS/Hercules/commit/73089923e91b88bb2470cd7abab8616b5e68d374[/url]