From d2bc97170e91765de7ab67b017085370a26e3f93 Mon Sep 17 00:00:00 2001 From: Fate Date: Sat, 31 Jan 2009 12:57:07 -0700 Subject: When running out of spell charges, make sure to use spell attack delay for last attack, too --- doc/spell-language | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/spell-language b/doc/spell-language index b4ef833..68c15c8 100644 --- a/doc/spell-language +++ b/doc/spell-language @@ -561,6 +561,9 @@ The following functions are available: PCs gain such experience points by killing/completing quests, though this `healer experience point pool' slowly drains itself. + + is_pc : entity -> bool + Determines whether the target is a player character + Operations: ----------- This section documents the operations API. @@ -629,8 +632,8 @@ This section documents the operations API. change has finished. + override_attack : entity * int * int - * int * int *int -> () - override_attack(entity, charges, delay, range, icon, animation) + * int * int *int * int -> () + override_attack(entity, charges, delay, range, icon, animation, stop) overrides the entity's current attack (only for PCs). The entity will have `charges' attacks that instead result in calling the ATTRIGGER effect for this spell. When this operation is called, @@ -643,6 +646,9 @@ This section documents the operations API. `icon' is the ID of a status-effect ID that will be displayed while the spell is in effect. `animation' is the attack animation ID that should be used. + `stop' decides whether attacking should stop once the spell is out + of charges (1) or continue (0). (Note: this doesn't properly work, + possibly due to client issues. Always use 0.) Note that if the ATTRIGGER effect ABORTs, no charge will be consumed. -- cgit v1.2.3-60-g2f50