- Joined
- Mar 14, 2007
- Messages
- 33
- Reaction score
- 0
I notice that now when heal, the target will be full healed
I think the following code is not correct:
if(thisskill->duration<=0)//is heal
{
thisclient->PlayerStats->HP += (long int)thisskill->value1;
if(thisclient->PlayerStats->HP > thisclient->GetMaxHP() )
thisclient->PlayerStats->HP = thisclient->GetMaxHP();
return true;
}
(long int)thisskill->value1 should be an address of the array. which array member carries the right value of heal? 1,2 or 3?
I think the following code is not correct:
if(thisskill->duration<=0)//is heal
{
thisclient->PlayerStats->HP += (long int)thisskill->value1;
if(thisclient->PlayerStats->HP > thisclient->GetMaxHP() )
thisclient->PlayerStats->HP = thisclient->GetMaxHP();
return true;
}
(long int)thisskill->value1 should be an address of the array. which array member carries the right value of heal? 1,2 or 3?