Ejemplo n.º 1
0
func Special2(object clonk, int x, int y, bool released, bool mouseclick, bool abletocast, bool cooldown)
{
	if(!released && !mouseclick && abletocast && !cooldown)
	{
		if(clonk->LaunchSpell(Special2Spell, x, y, 0, 0))
			return 1;
	}
	return 0;
}
Ejemplo n.º 2
0
func Special1(object clonk, int x, int y, bool released, bool mouseclick, bool abletocast, bool cooldown)
{
	if(clonk.currHook && !released && abletocast)
	{
		clonk.currHook->Trigger();
		return 1;
	}

	if(!released && !mouseclick && abletocast && !cooldown)
	{
		clonk.currHook = clonk->LaunchSpell(Special1Spell, x, y, 0, 0);
		if(clonk.currHook)
		{
			return 1;
		}
	}
	return 0;
}