Commit b594a026d1ea88d283802edd9eb25bb6c01124ea
1 parent
3b069d52
Fix bug
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/adv/AdvPlayer.lua
| ... | ... | @@ -380,13 +380,13 @@ function BaseObject:getTeam(nType, noSelf) |
| 380 | 380 | addPlayer() |
| 381 | 381 | addEnemy() |
| 382 | 382 | elseif nType == 1 then |
| 383 | - if self.class == Player then --玩家 | |
| 383 | + if not self.monsterId then --玩家 | |
| 384 | 384 | addPlayer() |
| 385 | 385 | else |
| 386 | 386 | addEnemy() |
| 387 | 387 | end |
| 388 | 388 | elseif nType == 2 then |
| 389 | - if self.class == Player then --玩家 | |
| 389 | + if not self.monsterId then --玩家 | |
| 390 | 390 | addEnemy() |
| 391 | 391 | else |
| 392 | 392 | addPlayer() | ... | ... |