Commit b594a026d1ea88d283802edd9eb25bb6c01124ea

Authored by suhongyang
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,13 +380,13 @@ function BaseObject:getTeam(nType, noSelf)
380 addPlayer() 380 addPlayer()
381 addEnemy() 381 addEnemy()
382 elseif nType == 1 then 382 elseif nType == 1 then
383 - if self.class == Player then --玩家 383 + if not self.monsterId then --玩家
384 addPlayer() 384 addPlayer()
385 else 385 else
386 addEnemy() 386 addEnemy()
387 end 387 end
388 elseif nType == 2 then 388 elseif nType == 2 then
389 - if self.class == Player then --玩家 389 + if not self.monsterId then --玩家
390 addEnemy() 390 addEnemy()
391 else 391 else
392 addPlayer() 392 addPlayer()