-
-
Notifications
You must be signed in to change notification settings - Fork 124
[Vanilla Fix]Fix the bug that units keep attacking ground after target wall has been destroyed by adjacent damage/crush/wave damage #1861
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from 1 commit
0375ab8
37253ec
db670ea
eff621b
06ae9e6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,6 +11,9 @@ DEFINE_HOOK(0x73B05B, UnitClass_PerCellProcess_TiltWhenCrushes, 0x6) | |
| { | ||
| enum { SkipGameCode = 0x73B074 }; | ||
|
|
||
| GET(CellClass*, pCell, EDI); | ||
| reinterpret_cast<void(__thiscall*)(AbstractClass*)>(0x70D4A0)(pCell);// pCell->BecomeUntargetable(); | ||
|
||
|
|
||
| GET(UnitClass*, pThis, EBP); | ||
|
|
||
| auto const pType = pThis->Type; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2657,3 +2657,30 @@ DEFINE_HOOK(0x741A66, UnitClass_SetDestination_JJVehFix, 0x5) | |
| } | ||
|
|
||
| #pragma endregion | ||
|
|
||
| DEFINE_HOOK(0x445B62, BuildingClass_Limbo_WallTower_AdjacentWallDamage, 0x5) | ||
| { | ||
| enum { SkipGameCode = 0x445B6E }; | ||
|
|
||
| GET(CellClass*, pThis, EDI); | ||
| pThis->DamageWall(200); | ||
|
|
||
| if (pThis->OverlayTypeIndex == -1) | ||
| reinterpret_cast<void(__thiscall*)(AbstractClass*)>(0x70D4A0)(pThis);// pThis->BecomeUntargetable(); | ||
|
||
|
|
||
| return SkipGameCode; | ||
| } | ||
|
|
||
| DEFINE_HOOK(0x75F474, WaveClass_DamageCell_Wall, 0x8) | ||
| { | ||
| enum { SkipGameCode = 0x75F47C }; | ||
|
|
||
| GET(CellClass*, pCell, EDI); | ||
| GET(int, damage, ECX); | ||
| pCell->DamageWall(damage); | ||
|
|
||
| if (pCell->OverlayTypeIndex == -1) | ||
| reinterpret_cast<void(__thiscall*)(AbstractClass*)>(0x70D4A0)(pCell);// pCell->BecomeUntargetable(); | ||
|
||
|
|
||
| return SkipGameCode; | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same