aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2026-01-23 11:24:56 -0300
committerfusion32 <marcopuzziello@gmail.com>2026-01-23 11:24:56 -0300
commit6e93e71bbf8e5f444ffd88518d77a84cda766685 (patch)
treef3db7f07df9c793ddc711d4395098100294e84d1
parentc2cbe8e23bc1ca97908f9cc82ee772244c5dbfec (diff)
downloadgame-6e93e71bbf8e5f444ffd88518d77a84cda766685.tar.gz
game-6e93e71bbf8e5f444ffd88518d77a84cda766685.zip
fix problem with summons also creating summons (#51)
-rw-r--r--src/crnonpl.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/crnonpl.cc b/src/crnonpl.cc
index cfd36b3..81c0f16 100644
--- a/src/crnonpl.cc
+++ b/src/crnonpl.cc
@@ -2585,9 +2585,11 @@ void TMonster::IdleStimulus(void){
}
case IMPACT_SUMMON:{
- int SummonRace = SpellData->ImpactParam1;
- int MaxSummons = SpellData->ImpactParam2;
- Impact = new TSummonImpact(this, SummonRace, MaxSummons);
+ if(this->Master == 0){
+ int SummonRace = SpellData->ImpactParam1;
+ int MaxSummons = SpellData->ImpactParam2;
+ Impact = new TSummonImpact(this, SummonRace, MaxSummons);
+ }
break;
}
}