summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-21 19:12:11 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-21 19:12:11 +0000
commit960b1a24a32c93a220e9fc2ef41cdbc7b05f9030 (patch)
treed264294f1a8bf582338383e4899d288280e72f93 /doc
parenta5e971eb69f5df3360ad86bc7d8310427e890342 (diff)
downloadhercules-960b1a24a32c93a220e9fc2ef41cdbc7b05f9030.tar.gz
hercules-960b1a24a32c93a220e9fc2ef41cdbc7b05f9030.tar.bz2
hercules-960b1a24a32c93a220e9fc2ef41cdbc7b05f9030.tar.xz
hercules-960b1a24a32c93a220e9fc2ef41cdbc7b05f9030.zip
- Updated the autospell bonus scripts so you don't have to specify all the attack type criteria. If neither of BF_LONG/BF_SHORT is specified, the spell will trigger on both. If neither of BF_WEAPON/BF_MAGIC/BF_MISC is specified, the spell will trigger on BF_WEAPON, if neither of BF_NORMAL/BF_SKILL is specified, BF_SKILL is used if the trigger is BF_MAGIC/BF_MISC and BF_NORMAL is used if the attack is BF_WEAPON. This way the default when nothing is specified is BF_NORMAL|BF_WEAPON|BF_SHORT|BF_LONG.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10300 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'doc')
-rw-r--r--doc/item_bonus.txt24
1 files changed, 14 insertions, 10 deletions
diff --git a/doc/item_bonus.txt b/doc/item_bonus.txt
index 528ae0fb4..e644870e6 100644
--- a/doc/item_bonus.txt
+++ b/doc/item_bonus.txt
@@ -204,12 +204,20 @@ bonus5 bAutoSpell,x,y,n,t,i; n/10% chance to cast skill x of level y when
t: Trigger criteria:
BF_SHORT: Trigger on melee attack
BF_LONG: Trigger on ranged attack
+ (When neither is specified,
+ then BF_SHORT+BF_LONG is used.
BF_WEAPON: Trigger on weapon skills
BF_MAGIC: Trigger on magic skills
- BF_MISC: Trigger on misc skills
- (the default for the other
- bAutoSpell modes is
- BF_WEAPON|BF_LONG|BF_SHORT)
+ BF_MISC: Trigger on misc skills
+ (If none is specified, BF_WEAPON is
+ used)
+ BF_NORMAL: Trigger on normal
+ attacks.
+ BF_SKILL: Trigger on skills
+ (When neither is specified,
+ BF_SKILL is used if the type is
+ BF_MISC or BF_MAGIC. BF_NORMAL is
+ used if the type is BF_WEAPON)
bonus5 bAutoSpellWhenHit,x,y,n,t,i; n/10% chance to cast skill x of level y when
being hit by a direct attack. Target
@@ -218,12 +226,8 @@ bonus5 bAutoSpellWhenHit,x,y,n,t,i; n/10% chance to cast skill x of level y when
i: 1=cast on enemy, not on self
2=use random skill lv in [1..y]
3=1+2 (random lv on enemy)
- t: Trigger criteria:
- BF_SHORT: Trigger on melee attack
- BF_LONG: Trigger on ranged attack
- BF_WEAPON: Trigger on weapon skills
- BF_MAGIC: Trigger on magic skills
- BF_MISC: Trigger on misc skills
+ t: Trigger criteria (see bonus5
+ bAutoSpell)
//---- 2/22 new card effects ----