IF_HAVE_ITEM_CLASS treat negative as don't take

This commit is contained in:
2025-09-04 15:14:29 -05:00
parent 2292482462
commit c7c10f5381

View File

@@ -3427,7 +3427,7 @@ void ifthen_spec(const runtime_state& ctx) {
case eSpecType::IF_HAVE_ITEM_CLASS:
if(spec.ex2a > 0 && univ.party.take_class(spec.ex1a))
ctx.next_spec = spec.ex1b;
else if(spec.ex2a == 0 && univ.party.has_class(spec.ex1a))
else if(spec.ex2a <= 0 && univ.party.has_class(spec.ex1a))
ctx.next_spec = spec.ex1b;
break;
case eSpecType::IF_EQUIP_ITEM_CLASS: