MCPcopy Create free account
hub / github.com/Phobos-developers/Phobos / IsTypeImmune

Method IsTypeImmune

src/Ext/Techno/Body.cpp:450–464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

448}
449
450bool TechnoExt::IsTypeImmune(TechnoClass* pThis, TechnoClass* pSource)
451{
452 if (!pThis || !pSource)
453 return false;
454
455 auto const pType = pThis->GetTechnoType();
456
457 if (!pType->TypeImmune)
458 return false;
459
460 if (pType == pSource->GetTechnoType() && pThis->Owner == pSource->Owner)
461 return true;
462
463 return false;
464}
465
466/// <summary>
467/// Gets whether or not techno has listed AttachEffect types active on it

Callers

nothing calls this directly

Calls 1

GetTechnoTypeMethod · 0.80

Tested by

no test coverage detected