def heal(self, target): self.validify() if not isinstance(target, Bot): raise TypeError('target should be of [Bot]') target.validify() return library.botHeal(self.ptr, target.ptr)
def heal(self, target): self.validify() if target.__class__ not in [Bot]: raise TypeError('target should be of [Bot]') target.validify() return library.botHeal(self.ptr, target.ptr)