skill.lua line 27 from "true" to "":
Code: Select all
self.InBattle = ""; -- "true" = usable only in battle, false = out of battle
Code: Select all
-- This skill cannot be used in battle
if( player.Battling and self.InBattle == false ) then
return false;
end
-- This skill can only be used in battle -- NEW LINE
if( not player.Battling and self.InBattle == true ) then -- NEW LINE
return false; -- NEW LINE
end -- NEW LINE
Code: Select all
if( inbattle ) then
if( inbattle == "true" ) then
inbattle = true;
else
inbattle = false;
end;
end
Code: Select all
if( inbattle ~= nil ) then
if( inbattle == "true" ) then
inbattle = true;
end;
if( inbattle == "false" ) then
inbattle = false;
end;
end
Code: Select all
-- if( inbattle ) then tmp.InBattle = inbattle; end;
if( inbattle ~= nil ) then tmp.InBattle = inbattle; end; -- STEPHEN
inbattle not used:
The cast has no restriction and will be used in battle and out of battle
inbattle = true
The cast will only be used in battle
inbattle = false
The cast will only be used out of battle