@@ -2253,19 +2253,19 @@ TbResult script_use_power(PlayerNumber plyr_idx, PowerKind power_kind, char free
2253
2253
}
2254
2254
2255
2255
/**
2256
- * Cast a power on a creature which meets given criteria.
2256
+ * Cast a spell on a creature which meets given criteria.
2257
2257
* @param plyr_idx The player whose creature will be affected.
2258
2258
* @param crmodel Model of the creature to find.
2259
2259
* @param criteria Criteria, from CreatureSelectCriteria enumeration.
2260
- * @param fmcl_bytes encoded bytes: f=cast for free flag,m=power kind,c=caster player index,l=power level.
2261
- * @return TbResult whether the power was successfully cast
2260
+ * @param fmcl_bytes encoded bytes: f=cast for free flag,m=spell kind,c=caster player index,l=spell level.
2261
+ * @return TbResult whether the spell was successfully cast
2262
2262
*/
2263
2263
TbResult script_use_spell_on_creature (PlayerNumber plyr_idx , ThingModel crmodel , long criteria , long fmcl_bytes )
2264
2264
{
2265
2265
struct Thing * thing = script_get_creature_by_criteria (plyr_idx , crmodel , criteria );
2266
2266
if (thing_is_invalid (thing ))
2267
2267
{
2268
- SYNCDBG (5 , "No matching player %d creature of model %d (%s) found to use power on." , (int )plyr_idx , (int )crmodel , creature_code_name (crmodel ));
2268
+ SYNCDBG (5 , "No matching player %d creature of model %d (%s) found to use spell on." , (int )plyr_idx , (int )crmodel , creature_code_name (crmodel ));
2269
2269
return Lb_FAIL ;
2270
2270
}
2271
2271
SpellKind spkind = (fmcl_bytes >> 8 ) & 255 ;
@@ -2274,7 +2274,7 @@ TbResult script_use_spell_on_creature(PlayerNumber plyr_idx, ThingModel crmodel,
2274
2274
{ // Immunity is handled in 'apply_spell_effect_to_thing', but this command plays sounds, so check for it.
2275
2275
if (thing_is_picked_up (thing ))
2276
2276
{
2277
- SYNCDBG (5 , "Found creature to cast the power on but it is being held." );
2277
+ SYNCDBG (5 , "Found creature to cast the spell on but it is being held." );
2278
2278
return Lb_FAIL ;
2279
2279
}
2280
2280
CrtrExpLevel spell_level = fmcl_bytes & 255 ;
@@ -2293,7 +2293,6 @@ TbResult script_use_spell_on_creature(PlayerNumber plyr_idx, ThingModel crmodel,
2293
2293
}
2294
2294
else
2295
2295
{
2296
- SCRPTERRLOG ("power not supported for this command: %d" , (int )spkind );
2297
2296
return Lb_FAIL ;
2298
2297
}
2299
2298
}
0 commit comments