Spider Stomper
Posts: 200
Joined: Sunday, 11th May 2014, 11:26
The solo time/pain bond timer of Uskayaw seems not to work.
- Code:
void uskayaw_prepares_audience()
{
int count = apply_area_visible(_check_for_uskayaw_targets, you.pos());
if (count > 0)
{
simple_god_message(" prepares the audience for your solo!");
apply_area_visible(_prepare_audience, you.pos());
// Increment a delay timer to prevent players from spamming this ability
// via piety loss and gain. Timer is in AUT.
you.props[USKAYAW_AUDIENCE_TIMER] = 300 + random2(201);
}
else // Reset the timer because we didn't actually execute.
you.props[USKAYAW_AUDIENCE_TIMER] = 0;
}
void uskayaw_bonds_audience()
{
int count = apply_area_visible(_check_for_uskayaw_targets, you.pos());
if (count > 1)
{
simple_god_message(" links your audience in an emotional bond!");
apply_area_visible(_bond_audience, you.pos());
// Increment a delay timer to prevent players from spamming this ability
// via piety loss and gain. Timer is in AUT.
you.props[USKAYAW_BOND_TIMER] = 300 + random2(201);
}
else // Reset the timer because we didn't actually execute.
you.props[USKAYAW_BOND_TIMER] = 0;
}
according to this code, the timer of solo time/pain bond must be initialized if there are no monsters in sight. Am I right? I don't feel like initialization is applied.