library Attachments
struct AT
private static hashtable h = InitHashtable()
static method removeAttachment takes item it returns nothing
if HaveSavedHandle(h,GetHandleId(it),0) then
call DestroyEffect(LoadEffectHandle(h,GetHandleId(it),0))
call RemoveSavedHandle(h, GetHandleId(it), 0)
endif
endmethod
static method addAttachment takes item it, unit u, string sfx ,string where returns nothing
call SaveEffectHandle(h,GetHandleId(it), 0, AddSpecialEffectTarget(sfx,u,where))
endmethod
endstruct
endlibrary