Comments (2)
From what I see from the original DLL, the code is checking (pStatesTxtRecord + 0x12) & gdwBitMasks[0]
.
dwStateFlags
is located at pStatesTxtRecord + 0x10
, so it effectively checks the 16th bit ( 2Bytes = 16bits), and STATEMASK_DISGUISE = 16
.
i tested the function it doesnt work and you error 2 is gdwBitMasks[nState % 32] -> gdwBitMasks[nState % 31]
You're mistaking %
and &
, nState % 32
is equivalent to nState & 31
Did you test this ingame ? If yes, how ?
from d2moo.
I just checked ingame, and STATEMASK_DISGUISE
is correct here. If we put STATEMASK_NOSEND
, then the druid can not turn into a werewolf.
from d2moo.
Related Issues (20)
- Improve the debugger !
- Choose better names for D2RoomStrc and D2RoomExStrc
- Minion monster AI Param `att1/att2?` not working
- Minor naming updates to StatList functions
- SUnitEvent.h structs members need cleaning/renaming
- typos HOT 2
- padding in D2QuestDataStrc / D2QuestGUIDStrc HOT 1
- D2GAME_SpawnSuperUnique_6FC6F690
- MONSTER_InitializeStatsAndSkills
- sub_6FCFEDD0
- D2Game.0x6FC55360 HOT 5
- D2Game.0x6FCBB6C0
- D2Game.0x6FCF3000 HOT 2
- D2Game.0x6FC6FF10
- //D2Game.0x6FC6EC10
- //D2Game.0x6FC90010
- CLIENTS_RemoveClientFromListWithId may remove from wrong list
- `MONSTERREGION_InitializeAll` Uses Incorrect Sizes
- Use `const char*` as param to FnLeaveGame as it is indeed a null terminated string.
- `FnSetGameData` should be `FnCreateClientInfo = D2ClientInfoStrc*(__fastcall*)(D2ClientStrc* pClient);`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from d2moo.