|
|
@@ -1771,10 +1771,11 @@ public class PlayerController : MoveCharacter
|
|
|
|
|
|
public override void BeHit(AttackController.AttackMethod attackMethod, Character attackFrom, int damage = -1)
|
|
|
{
|
|
|
- Photosphere photosphere = conductController.photospheres[conductController.photospheres.Count - 1];
|
|
|
- if (photosphere)
|
|
|
+ List<Photosphere> photospheres = conductController.photospheres;
|
|
|
+ if (photospheres.Count > 0)
|
|
|
{
|
|
|
- if(damage == -1)
|
|
|
+ Photosphere photosphere = photospheres[photospheres.Count - 1];
|
|
|
+ if (damage == -1)
|
|
|
{
|
|
|
photosphere.hp -= attackMethod.attackInfo.damage;
|
|
|
}
|