From d5757f74134b4c00eb055aa75f52eb38c13b9b92 Mon Sep 17 00:00:00 2001 From: skotlex Date: Tue, 21 Nov 2006 21:38:56 +0000 Subject: - Various GS skill requirement corrections: - All coin related skills can be used with any weapon. Those that require ammo can be used with any ammo. - Added support for specifying ammo type = 99 in the skill_require_db file, it can be used to specify that any kind of ammo can be used with the skill, but you NEED to have ammo equipped. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9289 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/skill.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/map/skill.c') diff --git a/src/map/skill.c b/src/map/skill.c index eab031766..6bd17dec0 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -11285,7 +11285,11 @@ int skill_readdb (void) p = split[8]; for(j=0;j<32;j++){ l = atoi(p); - if (l) + if (l==99) { + skill_db[i].ammo = 0xffffffff; + break; + } + else if (l) skill_db[i].ammo |= 1<