@@ -283,23 +283,25 @@ function Card:set_ability(center, initial, delay_sprites)
283283 if Cryptid .safe_get (G , " GAME" , " modifiers" , " cry_force_random_edition" ) then
284284 random = true
285285 end
286- if
287- repeatcheck (self .ability .set , { " Joker" , " Voucher" , " Booster" , " Base" , " Enhanced" })
288- or self .ability .consumeable
289- then
290- if edition and not random then
291- self :set_edition ({ [edition ] = true }, true , true )
292- elseif random then
293- self :set_edition (Cryptid .poll_random_edition (), true , true )
294- end
295- if sticker then
296- self .ability [sticker ] = true
297- self :set_cost ()
286+ if self .ability then
287+ if
288+ repeatcheck (self .ability .set , { " Joker" , " Voucher" , " Booster" , " Base" , " Enhanced" })
289+ or self .ability .consumeable
290+ then
291+ if edition and not random then
292+ self :set_edition ({ [edition ] = true }, true , true )
293+ elseif random then
294+ self :set_edition (Cryptid .poll_random_edition (), true , true )
295+ end
296+ if sticker then
297+ self .ability [sticker ] = true
298+ self :set_cost ()
299+ end
298300 end
299- end
300- if self .ability .set == " Voucher " then
301- if self .ability .perishable and not self . ability . perish_tally then
302- self . ability . perish_tally = G . GAME . cry_voucher_perishable_rounds
301+ if self . ability . set == " Voucher " then
302+ if self .ability .perishable and not self . ability . perish_tally then
303+ self .ability .perish_tally = G . GAME . cry_voucher_perishable_rounds
304+ end
303305 end
304306 end
305307end
0 commit comments