CGUnit_C::IsCreatureTypeFlagSpiritWorld
function · objectlayer · orchestration
- Address
0x605f70· 22 bytes, up to0x605f85- Signature
bool __thiscall (CGUnit_C *this)- Meaning
- Returns whether the unit's creature record at +0xb30 has type flag 0x2; false with no record
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- objectlayer/reaction#attacking
Finding: Attacking in objectlayer: reaction
0x606980(this = A, B) decides whether A may attack B. Only a creature with type flag 0x2 may
attack a ghost player, bit 4 of PLAYER_FLAGS. Bits 1, 7, 16, 20 and 25 of B's UNIT_FIELD_FLAGS
each refuse. Bits 8 and 9 refuse across the controlled line both ways: B's 0x100 against a
controlled A, B's 0x200 against any other, and A's against B alike. Two uncontrolled units may
fight when either reaction is 1 or less; a mixed pair when A's is below 4. Two
controlled units may not at 4 or more; else they may when a controlling player is missing, both
are in one duel, B's player has the PvP flag, bit 12, or both are free-for-all.
The derivation is in the doc.
Callers 2
- CGUnit_C::CanInteract objectlayer
- CGUnit_C::CanAttack objectlayer
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.