Corrected Heat Barrel bonuses (#2882)

* Fixes #2875.
* Attack was not factoring in coins.
* Corrected fixed cast time to also factor in coins.
Thanks to @rye305!
This commit is contained in:
Aleos 2018-02-09 13:27:39 -05:00 committed by GitHub
parent 3bcb37bf86
commit 75a8f520a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10948,10 +10948,16 @@ int status_change_start(struct block_list* src, struct block_list* bl,enum sc_ty
val2 = src->id;
break;
case SC_HEAT_BARREL:
//kRO Update 2016-05-25
val2 = val1 * 5; // -fixed casttime
val3 = 6 + val1 * 2; // ATK
val4 = 25 + val1 * 5; // -hit
{
uint8 n = 10;
if (sd)
n = (uint8)sd->spiritball_old;
//kRO Update 2016-05-25
val2 = n * 5; // -fixed casttime
val3 = (6 + val1 * 2) * n; // ATK
val4 = 25 + val1 * 5; // -hit
}
break;
case SC_P_ALTER:
{