All pastes #367830 Raw Edit

Miscellany

public text v1 · immutable
#367830 ·published 2007-02-22 16:54 UTC
rendered paste body

def parse_CMSG_CAST_SPELL(_stream):
    f01_spellId = _stream.getI()
    _target_flags = _stream.getH()
    f02_01_target_mask = TARGET_FLAG(_target_flags)

    if _target_flags & TARGET_FLAG_SELF:
        return dict(sys._getframe().f_locals)

    if _target_flags & TARGET_FLAG_UNIT:
        f02_02_unit_Pguid = hexQ(_stream.getPGUID())

    if _target_flags & TARGET_FLAG_OBJECT:
        f02_02_object_Pguid = hexQ(_stream.getPGUID())
        
    if _target_flags & TARGET_FLAG_ITEM:
        f02_02_item_Pguid = hexQ(_stream.getPGUID())