Issue information

Issue ID
#4823
Status
Needs more Info
Severity
None
Started
Hercules Elf Bot
Mar 18, 2011 18:52
Last Post
Hercules Elf Bot
Dec 17, 2011 3:46
Confirmation
N/A

Hercules Elf Bot - Mar 18, 2011 18:52

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

It's always NEUTRAL but the description says it depends on the grenade element.

at Battle.c we have this:
CODE
        case GS_GROUNDDRIFT:
            s_ele = s_ele_ = wflag; //element comes in flag.
            break;

That's prolly the bogus thing since i haven't found where in the src they set this wflag for groundrift skill.


@Offtopic:
A little scripting doubt: Is this really neneed?
QUOTE
case GS_GROUNDDRIFT:
{
int element[5]={ELE_WIND,ELE_DARK,ELE_POISON,ELE_WATER,ELE_FIRE};

val1 = status->rhw.ele;
if (!val1)
val1=element[rand()%5];

switch (val1)
{
case ELE_FIRE:
subunt++;
case ELE_WATER:
subunt++;
case ELE_POISON:
subunt++;
case ELE_DARK:
subunt++;
case ELE_WIND:
break;
default:
subunt=rand()%5;
break; <---Is this really neneed?It'll 'break' right below anyways.
}

break;
}


This post has been edited by Hunter4565: Mar 18 2011, 11:53 AM

Hercules Elf Bot - Dec 17, 2011 3:46

Originally posted by [b]Ind[/b]
need confirmation / source, description is wrong? thanks