| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 | require("battle.Unit")local battle = BATTLElocal ReceiverBase = require("core:erm.ReceiverBase")local BM = ReceiverBase:new()function BM:new(ERM, unitId)	assert(unitId ~= nil, "!!BM requires unit identifier")	return ReceiverBase.new(self,{ERM = ERM, unitId = unitId})endfunction BM:A(x, p1)	if type(p1) == "nil" then		local unit = battle:getUnitById(self.unitId)		return unit:getAttack(false)	else		error("!!BM:A set is not implemented")	endendfunction BM:B(x, ...)	error("!!BM:B is not implemented")endfunction BM:C(x, ...)	error("!!BM:C is not implemented")endfunction BM:D(x, ...)	error("!!BM:D is not implemented")endfunction BM:E(x, ...)	error("!!BM:E is not implemented")endfunction BM:F(x, ...)	error("!!BM:F is not implemented")endfunction BM:G(x, ...)	error("!!BM:G is not implemented")endfunction BM:H(x, ...)	error("!!BM:H is not implemented")endfunction BM:J(x, ...)	error("!!BM:J is not implemented")endfunction BM:K(x, ...)	error("!!BM:K is not implemented")endfunction BM:L(x, ...)	error("!!BM:L is not implemented")endfunction BM:M(x, ...)	error("!!BM:M is not implemented")endfunction BM:N(x, ...)	error("!!BM:N is not implemented")endfunction BM:O(x, ...)	error("!!BM:O is not implemented")endfunction BM:P(x, ...)	error("!!BM:P is not implemented")endfunction BM:Q(x, ...)	error("!!BM:Q is not implemented")endfunction BM:R(x, ...)	error("!!BM:R is not implemented")endfunction BM:S(x, ...)	error("!!BM:S is not implemented")endfunction BM:T(x, ...)	error("!!BM:T is not implemented")endfunction BM:U(x, ...)	error("!!BM:U is not implemented")endfunction BM:V(x, ...)	error("!!BM:V is not implemented")endreturn BM
 |